public interface HttpServer
| Modifier and Type | Method and Description |
|---|---|
void |
setAuthMethod(String sMethod)
Set the client authentication method to use.
|
void |
setCacheProvider(CacheProvider cacheProvider)
Set CacheProviderFactory to use.
|
void |
setLocalAddress(String sAddr)
Set the address server should listen on.
|
void |
setLocalPort(int nPort)
Set the port number server should listen on.
|
void |
setParentService(Service service)
Set the Service that is embedding this HttpServer.
|
void |
setResourceConfig(Map<String,org.glassfish.jersey.server.ResourceConfig> mapConfig)
Set the map of Jersey ResourceConfig to use.
|
void |
setResourceConfig(org.glassfish.jersey.server.ResourceConfig config)
Set the Jersey ResourceConfig to use.
|
void |
setSocketProvider(com.oracle.common.net.SocketProvider provider)
Set the SocketProvider to use.
|
void |
start()
Start the server.
|
void |
stop()
Stop the server.
|
void setAuthMethod(String sMethod)
Valid values basic for HTTP basic authentication, cert for client certificate authentication, cert+basic for both client certificate and HTTP basic authentication, and none for no authentication.
sMethod - the authentication method to usevoid setCacheProvider(CacheProvider cacheProvider)
cacheProvider - the cache providervoid setLocalAddress(String sAddr)
sAddr - the addressvoid setLocalPort(int nPort)
nPort - the port numbervoid setParentService(Service service)
service - the parent servicevoid setResourceConfig(org.glassfish.jersey.server.ResourceConfig config)
This method will register specified application under the root context, which is equivalent to: setResourceConfig(Collections.singletonMap("/", config));
config - the resource config for a Jersey web applicationvoid setResourceConfig(Map<String,org.glassfish.jersey.server.ResourceConfig> mapConfig)
mapConfig - the map of context names to corresponding Jersey resource configs to usevoid setSocketProvider(com.oracle.common.net.SocketProvider provider)
provider - the SocketProvider
void start()
throws IOException
IOException - if an error occursvoid stop() throws IOException
IOException - if an error occurs