Package com.meterware.pseudoserver
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 String
Returns the header with the specified name.protected String[]
getParameter
(String name) Returns the values for the parameter with the specified name.protected Reader
Returns a reader for the body of the request.protected HttpRequest
getResponse
(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
Returns the header with the specified name. If no such header exists, will return null. -
getParameter
Returns the values for the parameter with the specified name. If no values exist will return null. -
getReader
Returns a reader for the body of the request. -
getBody
protected byte[] getBody() -
getRequest
-