Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.meterware.servletunit
Interface InvocationContext

public interface InvocationContext

An interface which represents the invocation of a servlet.

Author:
  Russell Gold

Method Summary
`HttpServletRequest` | `getRequest()` Returns the request to be processed by the servlet.
`HttpServletResponse` | `getResponse()` Returns the response which the servlet should modify during its operation.
`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.
`String` | `getTarget()` Returns the target for the original request.

Method Detail

### getRequest

    public HttpServletRequest getRequest()

  Returns the request to be processed by the servlet.

### getResponse

    public HttpServletResponse getResponse()

  Returns the response which the servlet should modify during its operation.

### getServlet

    public Servlet getServlet()
                       throws ServletException

  Returns the selected servlet, initialized to provide access to sessions and servlet context information.

### getServletResponse

    public WebResponse getServletResponse()
                                   throws 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.

### getTarget

    public String getTarget()

  Returns the target for the original request.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD