com.meterware.servletunit
Interface InvocationContext


public interface InvocationContext

An interface which represents the invocation of a servlet.

Author:
Russell Gold

Method Summary
 javax.servlet.http.HttpServletRequest getRequest()
          Returns the request to be processed by the servlet.
 javax.servlet.http.HttpServletResponse getResponse()
          Returns the response which the servlet 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.
 java.lang.String getTarget()
          Returns the target for the original request.
 

Method Detail

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Returns the request to be processed by the servlet.


getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Returns the response which the servlet should modify during its operation.


getServlet

public javax.servlet.Servlet getServlet()
                                 throws javax.servlet.ServletException
Returns the selected servlet, initialized to provide access to sessions and servlet context information.

javax.servlet.ServletException

getServletResponse

public WebResponse getServletResponse()
                               throws java.io.IOException
Returns the final response from the servlet. Note that this method should only be invoked after all processing has been done to the servlet response.

java.io.IOException

getTarget

public java.lang.String getTarget()
Returns the target for the original request.


Copyright © 2000-2002 Russell Gold. See license agreement for rights granted.