| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | ServletHandler.
AfterServiceListener, which is responsible for recycle servlet request and response objects. |
| Modifier and Type | Field and Description |
|---|---|
| protected ClassLoader | |
| private String | |
| protected ExpectationHandler | |
| protected FilterChainFactory | |
| protected boolean | initialize
Initialize the |
| private final Object | |
| private static final Logger | |
| private List | |
| protected final Map | properties
Holder for our configured properties. |
| pack-priv static final Note | |
| pack-priv static final Note | |
| pack-priv static final ServletHandler. | |
| protected Class | |
| protected String | |
| private final ServletConfigImpl | |
| private final WebappContext | |
| protected volatile Servlet | |
| private SessionManager |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addOnDestroyListener(final Runnable
Runnable, which contains destroy listener logic.Adds the |
| protected void | |
| public void | customizeErrorPage(final Response
the response, final String Responsethe HTTP error message message, final int the error code. errorCode, final Throwable t)Customize the error page returned to the client. |
| public void | destroy()
Overrides org. Destroy this Servlet and its associated |
| protected void | |
| pack-priv void | doServletService(final ServletRequest servletRequest, final ServletResponse servletResponse, final DispatcherType dispatcherType)
|
| public ClassLoader | |
| private String | Returns: The combined path with pathInfo appended to servletInfoCombines the servletPath and the pathInfo. |
| public String | Returns: aString specifying the portion of the request URI that indicates the context of the requestReturns the portion of the request URI that indicates the context of the request. |
| public ExpectationHandler | Returns: theExpectationHandler responsible for processing Expect: header (for example "Expect:
100-Continue").Get the |
| protected FilterChainInvoker | |
| public String | |
| public ServletConfigImpl | |
| protected WebappContext | |
| public Servlet | Returns: Servlet instance.Return the |
| pack-priv static HttpServletRequestImpl | |
| pack-priv static HttpServletResponseImpl | |
| protected String | Returns: the session cookie nameOverrides org. Overrides default (JSESSIONID) session cookie name. |
| protected SessionManager | getSessionManager(Request request)
Overrides org. Returns: Servlet-aware |
| protected void | |
| protected boolean | sendAcknowledgment(Request request, Response response)
Overrides org. Override parent's
|
| public void | service(Request request, Response response)
Implements abstract org. This method should contain the logic for any HTTP extension to the Grizzly HTTP web server. |
| public void | |
| public void | setContextPath(String
Context path. contextPath)Programmatically set the context path of the Servlet. |
| protected void | setDispatcherHelper(final DispatcherHelper dispatcherHelper)
Overrides org.
|
| private void | |
| public void | setExpectationHandler(ExpectationHandler
the expectationHandler)ExpectationHandler responsible for processing Expect: header (for
example "Expect: 100-Continue").Set the |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | setServletInstance(Servlet
an instance of Servlet. servletInstance)Set the |
| protected void | setSessionManager(SessionManager
an implementation of SessionManager. sessionManager)Set the |
| public void | start()
Overrides org. Called when the |
| classLoader | back to summary |
|---|---|
| protected ClassLoader classLoader | |
| contextPath | back to summary |
|---|---|
| private String contextPath | |
| expectationHandler | back to summary |
|---|---|
| protected ExpectationHandler expectationHandler | |
| filterChainFactory | back to summary |
|---|---|
| protected FilterChainFactory filterChainFactory | |
| initialize | back to summary |
|---|---|
| protected boolean initialize Initialize the | |
| lock | back to summary |
|---|---|
| private final Object lock | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| onDestroyListeners | back to summary |
|---|---|
| private List<Runnable> onDestroyListeners | |
| properties | back to summary |
|---|---|
| protected final Map<String, Object> properties Holder for our configured properties. | |
| SERVLET_REQUEST_NOTE | back to summary |
|---|---|
| pack-priv static final Note<HttpServletRequestImpl> SERVLET_REQUEST_NOTE | |
| SERVLET_RESPONSE_NOTE | back to summary |
|---|---|
| pack-priv static final Note<HttpServletResponseImpl> SERVLET_RESPONSE_NOTE | |
| servletAfterServiceListener | back to summary |
|---|---|
| pack-priv static final ServletHandler. | |
| servletClass | back to summary |
|---|---|
| protected Class<? extends Servlet> servletClass | |
| servletClassName | back to summary |
|---|---|
| protected String servletClassName | |
| servletConfig | back to summary |
|---|---|
| private final ServletConfigImpl servletConfig | |
| servletCtx | back to summary |
|---|---|
| private final WebappContext servletCtx The | |
| servletInstance | back to summary |
|---|---|
| protected volatile Servlet servletInstance | |
| sessionManager | back to summary |
|---|---|
| private SessionManager sessionManager The | |
| ServletHandler | back to summary |
|---|---|
| protected ServletHandler(final ServletConfigImpl servletConfig) | |
| addOnDestroyListener | back to summary |
|---|---|
| pack-priv void addOnDestroyListener(final Runnable r) Adds the | |
| configureServletEnv | back to summary |
|---|---|
| protected void configureServletEnv() throws ServletException Configure the
| |
| customizeErrorPage | back to summary |
|---|---|
| public void customizeErrorPage(final Response response, final String message, final int errorCode, final Throwable t) Customize the error page returned to the client. | |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides org. Destroy this Servlet and its associated
| |
| doServletService | back to summary |
|---|---|
| protected void doServletService(final Request request, final Response response) | |
| doServletService | back to summary |
|---|---|
| pack-priv void doServletService(final ServletRequest servletRequest, final ServletResponse servletResponse, final DispatcherType dispatcherType) throws IOException, ServletException | |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() | |
| getCombinedPath | back to summary |
|---|---|
| private String getCombinedPath(final HttpServletRequest request) Combines the servletPath and the pathInfo.
If pathInfo is
| |
| getContextPath | back to summary |
|---|---|
| public String getContextPath() Returns the portion of the request URI that indicates the context of the request. The context path always comes first in a request URI. The path starts with a "/" character but does not end with a "/" character. For servlets in the default (root) context, this method returns "". The container does not decode this string.
It is possible that a servlet container may match a context by more than one context path. In such cases this method
will return the actual context path used by the request and it may differ from the path returned by the
| |
| getExpectationHandler | back to summary |
|---|---|
| public ExpectationHandler getExpectationHandler() Get the
| |
| getFilterChain | back to summary |
|---|---|
| protected FilterChainInvoker getFilterChain(Request request) | |
| getName | back to summary |
|---|---|
| public String getName() Overrides org. Doc from org. Get the HttpHandler name.
| |
| getServletConfig | back to summary |
|---|---|
| public ServletConfigImpl getServletConfig() | |
| getServletCtx | back to summary |
|---|---|
| protected WebappContext getServletCtx() | |
| getServletInstance | back to summary |
|---|---|
| public Servlet getServletInstance() Return the
| |
| getServletRequest | back to summary |
|---|---|
| pack-priv static HttpServletRequestImpl getServletRequest(final Request request) | |
| getServletResponse | back to summary |
|---|---|
| pack-priv static HttpServletResponseImpl getServletResponse(final Request request) | |
| getSessionCookieName | back to summary |
|---|---|
| protected String getSessionCookieName() Overrides org. Overrides default (JSESSIONID) session cookie name. | |
| getSessionManager | back to summary |
|---|---|
| protected SessionManager getSessionManager(Request request) Overrides org.
| |
| loadServlet | back to summary |
|---|---|
| protected void loadServlet() throws ServletException Load a
| |
| sendAcknowledgment | back to summary |
|---|---|
| protected boolean sendAcknowledgment(Request request, Response response) throws IOException Overrides org. Override parent's
| |
| service | back to summary |
|---|---|
| public void service(Request request, Response response) throws Exception Implements abstract org. Doc from org. This method should contain the logic for any HTTP extension to the Grizzly HTTP web server.
| |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(ClassLoader classLoader) | |
| setContextPath | back to summary |
|---|---|
| public void setContextPath(String contextPath) Programmatically set the context path of the Servlet.
| |
| setDispatcherHelper | back to summary |
|---|---|
| protected void setDispatcherHelper(final DispatcherHelper dispatcherHelper) Overrides org.
| |
| setDispatcherPath | back to summary |
|---|---|
| private void setDispatcherPath(final Request request, final String path) | |
| setExpectationHandler | back to summary |
|---|---|
| public void setExpectationHandler(ExpectationHandler expectationHandler) Set the
| |
| setFilterChainFactory | back to summary |
|---|---|
| protected void setFilterChainFactory(final FilterChainFactory filterChainFactory) | |
| setPathData | back to summary |
|---|---|
| protected void setPathData(final Request from, final HttpServletRequestImpl to) | |
| setServletClass | back to summary |
|---|---|
| protected void setServletClass(final Class<? extends Servlet> servletClass) | |
| setServletClassName | back to summary |
|---|---|
| protected void setServletClassName(final String servletClassName) | |
| setServletInstance | back to summary |
|---|---|
| protected void setServletInstance(Servlet servletInstance) Set the
| |
| setSessionManager | back to summary |
|---|---|
| protected void setSessionManager(SessionManager sessionManager) Set the
| |
| start | back to summary |
|---|---|
| public void start() Overrides org. Doc from org. Called when the
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private final Response |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | acknowledge()
Implements org. Acknowledges a client that server wants to receive payload. |
| public void | fail()
Implements org. Notifies a client that server doesn't want to process HTTP message payload. |
| public boolean | |
| public boolean |
| isAcknowledged | back to summary |
|---|---|
| private boolean isAcknowledged | |
| isFailAcknowledgement | back to summary |
|---|---|
| private boolean isFailAcknowledgement | |
| response | back to summary |
|---|---|
| private final Response response | |
| AckActionImpl | back to summary |
|---|---|
| private AckActionImpl(final Response response) | |
| acknowledge | back to summary |
|---|---|
| public void acknowledge() throws IOException Implements org. Doc from org. Acknowledges a client that server wants to receive payload.
| |
| fail | back to summary |
|---|---|
| public void fail() throws IOException Implements org. Doc from org. Notifies a client that server doesn't want to process HTTP message payload.
| |
| isAcknowledged | back to summary |
|---|---|
| public boolean isAcknowledged() | |
| isFailAcknowledgement | back to summary |
|---|---|
| public boolean isFailAcknowledgement() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | onAfterService(final Request request)
Implements org. The method will be called once the |
| ServletAfterServiceListener | back to summary |
|---|---|
| pack-priv ServletAfterServiceListener() | |
| onAfterService | back to summary |
|---|---|
| public void onAfterService(final Request request) Implements org. Doc from org. The method will be called once the
| |