|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface which represents the invocation of a servlet.
Method Summary | |
javax.servlet.Filter |
getFilter()
Returns the current active filter object. |
javax.servlet.FilterChain |
getFilterChain()
Returns the current filter chain. |
FrameSelector |
getFrame()
Returns the target frame for the original request. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the request to be processed by the servlet or filter. |
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the response which the servlet or filter should modify during its operation. |
javax.servlet.Servlet |
getServlet()
Returns the selected servlet, initialized to provide access to sessions and servlet context information. |
WebResponse |
getServletResponse()
Returns the final response from the servlet. |
boolean |
isFilterActive()
Returns true if the current context is a filter, rather than a servlet. |
void |
popRequest()
Removes the top request dispatcher or filter from this context. |
void |
pushFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Pushes the current filter onto the execution stack and switches to the next filter or the selected servlet. |
void |
pushForwardRequest(javax.servlet.RequestDispatcher rd,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Adds a request dispatcher to this context to simulate a forward request. |
void |
pushIncludeRequest(javax.servlet.RequestDispatcher rd,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Adds a request dispatcher to this context to simulate an include request. |
void |
service()
Invokes the current servlet or filter. |
Method Detail |
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public void service() throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public javax.servlet.Servlet getServlet() throws javax.servlet.ServletException
isFilterActive()
returns false.
javax.servlet.ServletException
public WebResponse getServletResponse() throws java.io.IOException
java.io.IOException
public FrameSelector getFrame()
public void pushIncludeRequest(javax.servlet.RequestDispatcher rd, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
javax.servlet.ServletException
public void pushForwardRequest(javax.servlet.RequestDispatcher rd, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
javax.servlet.ServletException
public void popRequest()
public boolean isFilterActive()
public javax.servlet.Filter getFilter() throws javax.servlet.ServletException
isFilterActive()
returns true.
javax.servlet.ServletException
public javax.servlet.FilterChain getFilterChain()
isFilterActive()
returns true.
public void pushFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
doFilter
call.
ServletRequest
and ServletResponse
because those are the
types passed to Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
; however, HttpUnit requires the objects to implement
HttpServletRequest
and HttpServletResponse
because they will eventually be passed to an
HttpServlet
.
request
- the request to pass to the next filter. May be a wrapper.response
- the response object to pass to the next filter. May be a wrapper.
|
Copyright © 2000-2008 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |