public static class WebHubProfile.ServerFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
allowFlash_ |
private boolean |
allowSilverlight_ |
private java.lang.String |
logType_ |
private OriginAuthorizer |
oAuth_ |
private int |
port_ |
private java.lang.String |
xmlrpcPath_ |
Constructor and Description |
---|
ServerFactory()
Constructs a ServerFactory with default properties.
|
Modifier and Type | Method and Description |
---|---|
InternalServer |
createSampXmlRpcServer()
Returns a new internal server.
|
protected java.net.ServerSocket |
createServerSocket(int port)
Creates a socket on a given port to be used by the server this
object produces.
|
java.lang.String |
getLogType()
Returns the type of logging to use.
|
OriginAuthorizer |
getOriginAuthorizer()
Returns the authorization policy for external origins.
|
int |
getPort()
Returns the port number the server will run on.
|
java.lang.String |
getXmlrpcPath()
Returns the path on the HTTP server at which the XML-RPC server
will reside.
|
boolean |
isAllowFlash()
Indicates whether Adobe Flash cross-domain workaround
will be supported.
|
boolean |
isAllowSilverlight()
Indicates whether Microsoft Silverlight cross-domain workaround
will be supported.
|
void |
setAllowFlash(boolean allowFlash)
Sets whether Adobe Flash cross-domain workaround will be supported.
|
void |
setAllowSilverlight(boolean allowSilverlight)
Sets whether Microsoft Silverlight cross-domain workaround
will be supported.
|
void |
setLogType(java.lang.String logType)
Sets the type of logging to use.
|
void |
setOriginAuthorizer(OriginAuthorizer oAuth)
Sets the authorization policy for external origins.
|
void |
setPort(int port)
Sets the port number the server will run on.
|
void |
setXmlrpcPath(java.lang.String xmlrpcPath)
Sets the path on the HTTP server at which the XML-RPC server
will reside.
|
private java.lang.String logType_
private int port_
private java.lang.String xmlrpcPath_
private boolean allowFlash_
private boolean allowSilverlight_
private OriginAuthorizer oAuth_
public ServerFactory()
public InternalServer createSampXmlRpcServer() throws java.io.IOException
java.io.IOException
public void setLogType(java.lang.String logType)
logType
- logging type;
may be "http", "rpc", "xml", "none" or nullpublic java.lang.String getLogType()
public void setPort(int port)
port
- port numberpublic int getPort()
public void setXmlrpcPath(java.lang.String xmlrpcPath)
xmlrpcPath
- server path for XML-RPC serverpublic java.lang.String getXmlrpcPath()
public void setAllowFlash(boolean allowFlash)
allowFlash
- true iff supportedpublic boolean isAllowFlash()
public void setAllowSilverlight(boolean allowSilverlight)
allowSilverlight
- true iff supportedpublic boolean isAllowSilverlight()
public void setOriginAuthorizer(OriginAuthorizer oAuth)
oAuth
- authorizerpublic OriginAuthorizer getOriginAuthorizer()
protected java.net.ServerSocket createServerSocket(int port) throws java.io.IOException
port
- port numberjava.io.IOException