com.sun.enterprise.web
Class AdHocContextValve
java.lang.Object
com.sun.enterprise.web.AdHocContextValve
- All Implemented Interfaces:
- GlassFishValve
public class AdHocContextValve
- extends java.lang.Object
- implements GlassFishValve
Implementation of StandardContextValve which is added as the base valve
to a web module's ad-hoc pipeline.
A web module's ad-hoc pipeline is invoked for any of the web module's
ad-hoc paths.
The AdHocContextValve is responsible for invoking the ad-hoc servlet
associated with the ad-hoc path.
- Author:
- Jan Luehe
|
Method Summary |
java.lang.String |
getInfo()
Returns descriptive information about this valve. |
int |
invoke(Request request,
Response response)
Processes the given request by passing it to the ad-hoc servlet
associated with the request path (which has been determined, by the
associated web module, to be an ad-hoc path). |
void |
postInvoke(Request request,
Response response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdHocContextValve
public AdHocContextValve(WebModule context)
- Constructor.
getInfo
public java.lang.String getInfo()
- Returns descriptive information about this valve.
- Specified by:
getInfo in interface GlassFishValve
invoke
public int invoke(Request request,
Response response)
throws java.io.IOException,
javax.servlet.ServletException
- Processes the given request by passing it to the ad-hoc servlet
associated with the request path (which has been determined, by the
associated web module, to be an ad-hoc path).
- Specified by:
invoke in interface GlassFishValve
- Parameters:
request - The request to processresponse - The response to return
- Throws:
java.io.IOException
javax.servlet.ServletException
postInvoke
public void postInvoke(Request request,
Response response)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
postInvoke in interface GlassFishValve
- Throws:
java.io.IOException
javax.servlet.ServletException
Copyright © 2012 GlassFish Community. All Rights Reserved.