public class GrizzlyHttpServer extends AbstractHttpServer
HttpServer that uses Grizzly 2 to handle requests.AbstractHttpServer.SimpleSecurityContext| Modifier and Type | Field and Description |
|---|---|
protected org.glassfish.grizzly.http.server.HttpServer |
m_server
HTTP server instance.
|
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_fStarted, m_identityAsserter, m_mapResourceConfig, m_nPort, m_sAddr, m_sAuthMethod, m_serviceParent, m_session, m_socketProvider| Constructor and Description |
|---|
GrizzlyHttpServer() |
| Modifier and Type | Method and Description |
|---|---|
protected org.glassfish.grizzly.http.server.HttpServer |
createHttpServer()
Creates a new HttpServer which will manage all root resource and provider classes declared by the resource configuration.
|
protected Object |
instantiateContainer(org.glassfish.jersey.server.ResourceConfig config, org.glassfish.hk2.api.ServiceLocator locator)
Factory method for Jersey container instances.
|
protected void |
startInternal()
Start the server.
|
protected void |
stopInternal()
Stop the server.
|
authenticate, createContainer, dumpStats, getAverageRequestTime, getErrorCount, getHttpStatusCount, getIdentityAsserter, getLocalAddress, getLocalPort, getParentService, getRequestCount, getRequestsPerSecond, getResourceConfig, getSession, getSocketProvider, getSSLContext, getSSLParameters, getSubjectFromSession, handleRequest, incrementErrors, incrementRequestCount, isAuthMethodBasic, isAuthMethodCert, isAuthMethodNone, isSecure, logRequestTime, logStatusCount, resetStats, setAuthMethod, setIdentityAsserter, setLocalAddress, setLocalPort, setParentService, setResourceConfig, setResourceConfig, setSession, setSocketProvider, start, stop, toStringprotected org.glassfish.grizzly.http.server.HttpServer m_server
protected void startInternal()
throws IOException
startInternal in class AbstractHttpServerIOException - if an error occurs
protected void stopInternal()
throws IOException
stopInternal in class AbstractHttpServerIOException - if an error occurs
protected org.glassfish.grizzly.http.server.HttpServer createHttpServer()
throws IOException
IOException - if an error occurs while creating the containerprotected Object instantiateContainer(org.glassfish.jersey.server.ResourceConfig config, org.glassfish.hk2.api.ServiceLocator locator)
AbstractHttpServerinstantiateContainer in class AbstractHttpServerconfig - the resource configurationlocator - the parent service locator