org.resteasy.plugins.server.grizzly
Class SingletonServletAdapter
java.lang.Object
com.sun.grizzly.tcp.StaticResourcesAdapter
com.sun.grizzly.tcp.http11.GrizzlyAdapter
org.resteasy.plugins.server.grizzly.SingletonServletAdapter
- All Implemented Interfaces:
- com.sun.grizzly.tcp.Adapter
public class SingletonServletAdapter
- extends com.sun.grizzly.tcp.http11.GrizzlyAdapter
Adapter class that can initiate a Servlet and execute it.
- Version:
- $Revision: 1 $
- Author:
- Jeanfrancois Arcand, Bill Burke
Fields inherited from class com.sun.grizzly.tcp.http11.GrizzlyAdapter |
ADAPTER_NOTES, ALLOW_BACKSLASH |
Fields inherited from class com.sun.grizzly.tcp.StaticResourcesAdapter |
logger |
Fields inherited from interface com.sun.grizzly.tcp.Adapter |
CONNECTION_PROCESSING_COMPLETED, CONNECTION_PROCESSING_STARTED, REQUEST_PROCESSING_COMPLETED, REQUEST_PROCESSING_STARTED |
Method Summary |
void |
addInitParameter(java.lang.String name,
java.lang.String value)
Add a new servlet initialization parameter for this servlet. |
void |
afterService(com.sun.grizzly.tcp.http11.GrizzlyRequest request,
com.sun.grizzly.tcp.http11.GrizzlyResponse response)
|
javax.servlet.Servlet |
getServletInstance()
|
void |
init()
|
void |
service(com.sun.grizzly.tcp.http11.GrizzlyRequest request,
com.sun.grizzly.tcp.http11.GrizzlyResponse response)
|
void |
setServletInstance(javax.servlet.Servlet servletInstance)
|
Methods inherited from class com.sun.grizzly.tcp.http11.GrizzlyAdapter |
afterService, convertMB, convertURI, copyBytes, log, log, normalize, service |
Methods inherited from class com.sun.grizzly.tcp.StaticResourcesAdapter |
fireAdapterEvent, getRootFolder, service, setRootFolder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonServletAdapter
public SingletonServletAdapter()
SingletonServletAdapter
public SingletonServletAdapter(java.lang.String publicDirectory)
init
public void init()
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
service
public void service(com.sun.grizzly.tcp.http11.GrizzlyRequest request,
com.sun.grizzly.tcp.http11.GrizzlyResponse response)
- Specified by:
service
in class com.sun.grizzly.tcp.http11.GrizzlyAdapter
afterService
public void afterService(com.sun.grizzly.tcp.http11.GrizzlyRequest request,
com.sun.grizzly.tcp.http11.GrizzlyResponse response)
throws java.lang.Exception
- Specified by:
afterService
in class com.sun.grizzly.tcp.http11.GrizzlyAdapter
- Throws:
java.lang.Exception
addInitParameter
public void addInitParameter(java.lang.String name,
java.lang.String value)
- Add a new servlet initialization parameter for this servlet.
- Parameters:
name
- Name of this initialization parameter to addvalue
- Value of this initialization parameter to add
getServletInstance
public javax.servlet.Servlet getServletInstance()
setServletInstance
public void setServletInstance(javax.servlet.Servlet servletInstance)
Copyright © 2008. All Rights Reserved.