Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.rest.server
Class GrizzlyHttpServer

java.lang.Object
  extended by com.tangosol.coherence.rest.server.AbstractHttpServer
      extended by com.tangosol.coherence.rest.server.GrizzlyHttpServer

All Implemented Interfaces:
HttpServer

public class GrizzlyHttpServer
extends AbstractHttpServer

Implementation of HttpServer that uses Grizzly 2 to handle requests.

Author:
as 2011.06.03
See Also:
Grizzly

Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.coherence.rest.server.AbstractHttpServer
AbstractHttpServer.SimpleSecurityContext

 

Field Summary
protected  org.glassfish.grizzly.http.server.HttpServer m_server
          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
GrizzlyHttpServer()
           

 

Method Summary
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  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

m_server

protected org.glassfish.grizzly.http.server.HttpServer m_server
HTTP server instance.

Constructor Detail

GrizzlyHttpServer

public GrizzlyHttpServer()

Method Detail

startInternal

protected void startInternal()
                      throws java.io.IOException
Start the server.
Specified by:
startInternal in class AbstractHttpServer
Throws:
java.io.IOException - if an error occurs

stopInternal

protected void stopInternal()
                     throws java.io.IOException
Stop the server.
Specified by:
stopInternal in class AbstractHttpServer
Throws:
java.io.IOException - if an error occurs

createHttpServer

protected org.glassfish.grizzly.http.server.HttpServer createHttpServer()
                                                                 throws java.io.IOException
Creates a new HttpServer which will manage all root resource and provider classes declared by the resource configuration.
Returns:
the new HttpServer instance
Throws:
java.io.IOException - if an error occurs while creating the container

instantiateContainer

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.
Specified by:
instantiateContainer in class AbstractHttpServer
Parameters:
application - the web application the container delegates to for the handling of HTTP requests
config - the resource configuration
Returns:
container instance

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.