|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.rest.server.AbstractHttpServer
com.tangosol.coherence.rest.server.SimpleHttpServer
public class SimpleHttpServer
Implementation of HttpServer
that uses Simple Framework to handle requests.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.coherence.rest.server.AbstractHttpServer |
---|
AbstractHttpServer.SimpleSecurityContext |
Field Summary | |
---|---|
protected static int |
DEFAULT_THREAD_COUNT Default number of threads to use for request processing. |
protected int |
m_cThreads The number of threads that should be used to serve requests. |
protected org.simpleframework.transport.connect.Connection |
m_server Simple HTTP server instance. |
Fields inherited from class com.tangosol.coherence.rest.server.AbstractHttpServer |
---|
ATTR_SUBJECT, AUTH_BASIC, AUTH_CERT, AUTH_CERT_BASIC, AUTH_NONE, DEFAULT_ADDRESS, DEFAULT_IDENTITY_ASSERTER, DEFAULT_PORT, HEADER_AUTHORIZATION, HEADER_WWW_AUTHENTICATE, HTTP_BASIC_REALM, m_cacheFactory, m_fStarted, m_identityAsserter, m_mapResourceConfig, m_nPort, m_sAddr, m_sAuthMethod, m_serviceParent, m_socketProvider |
Constructor Summary | |
---|---|
SimpleHttpServer() Construct SimpleHttpServer instance. |
|
SimpleHttpServer(int cThreads) Construct SimpleHttpServer instance. |
Method Summary | |
---|---|
protected org.simpleframework.transport.connect.Connection |
createSimpleServer() |
protected java.lang.Object |
instantiateContainer(com.sun.jersey.spi.container.WebApplication application, com.sun.jersey.api.core.ResourceConfig config) Factory method for Jersey container instances. |
protected void |
startInternal() Start the server. |
protected void |
stopInternal() Stop the server. |
Methods inherited from class com.tangosol.coherence.rest.server.AbstractHttpServer |
---|
authenticate, createContainer, getIdentityAsserter, getLocalAddress, getLocalPort, getParentService, getResourceConfig, getSocketProvider, getSSLContext, getSSLParameters, getSubjectFromSession, handleRequest, isAuthMethodBasic, isAuthMethodCert, isAuthMethodNone, isSecure, setAuthMethod, setCacheFactory, setIdentityAsserter, setLocalAddress, setLocalPort, setParentService, setResourceConfig, setResourceConfig, setSocketProvider, start, stop, toString |
Field Detail |
---|
protected org.simpleframework.transport.connect.Connection m_server
protected final int m_cThreads
Simple uses two thread pools: one to read incoming requests and one to process them. This value applies to both pools, so the number of worker threads created internally by Simple will be double.
protected static final int DEFAULT_THREAD_COUNT
Constructor Detail |
---|
public SimpleHttpServer()
public SimpleHttpServer(int cThreads)
cThreads
- the number of threads to use for request processingMethod Detail |
---|
protected void startInternal() throws java.io.IOException
startInternal
in class AbstractHttpServer
java.io.IOException
- if an error occursprotected void stopInternal() throws java.io.IOException
stopInternal
in class AbstractHttpServer
java.io.IOException
- if an error occursprotected org.simpleframework.transport.connect.Connection createSimpleServer() throws java.io.IOException
java.io.IOException
protected java.lang.Object instantiateContainer(com.sun.jersey.spi.container.WebApplication application, com.sun.jersey.api.core.ResourceConfig config)
instantiateContainer
in class AbstractHttpServer
application
- the web application the container delegates to for the handling of HTTP requestsconfig
- the resource configuration
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |