|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface HttpServer
An interface implemented by embedded HTTP servers.
| Method Summary | |
|---|---|
void |
setAuthMethod(java.lang.String sMethod)Set the client authentication method to use. |
void |
setCacheFactory(ConfigurableCacheFactory cacheFactory)Set ConfigurableCacheFactory to use. |
void |
setLocalAddress(java.lang.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(java.util.Map mapConfig)Set the map of Jersey ResourceConfig to use. |
void |
setResourceConfig(com.sun.jersey.api.core.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. |
| Method Detail |
|---|
void setAuthMethod(java.lang.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 setCacheFactory(ConfigurableCacheFactory cacheFactory)
cacheFactory - the cache factoryvoid setLocalAddress(java.lang.String sAddr)
sAddr - the addressvoid setLocalPort(int nPort)
nPort - the port numbervoid setParentService(Service service)
service - the parent servicevoid setResourceConfig(com.sun.jersey.api.core.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(java.util.Map 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 java.io.IOException
java.io.IOException - if an error occurs
void stop()
throws java.io.IOException
java.io.IOException - if an error occurs
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||