Class PseudoServlet
java.lang.Object
com.meterware.pseudoserver.PseudoServlet
A basic simulated servlet for testing the HttpUnit library.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]getBody()Returns a resource object as a result of a get request.protected StringReturns the header with the specified name.protected String[]getParameter(String name) Returns the values for the parameter with the specified name.protected ReaderReturns a reader for the body of the request.protected HttpRequestgetResponse(String methodType) Returns a resource object as a result of a get request.
-
Field Details
-
CONTENTS
- See Also:
-
-
Constructor Details
-
PseudoServlet
public PseudoServlet()
-
-
Method Details
-
getResponse
Returns a resource object as a result of a get request.- Throws:
IOException
-
getGetResponse
Returns a resource object as a result of a get request.- Throws:
IOException
-
getPostResponse
- Throws:
IOException
-
getPutResponse
- Throws:
IOException
-
getHeader
-
getParameter
-
getReader
Returns a reader for the body of the request. -
getBody
protected byte[] getBody() -
getRequest
-