public abstract class PseudoServlet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENTS |
| Constructor and Description |
|---|
PseudoServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getBody() |
WebResource |
getGetResponse()
Returns a resource object as a result of a get request.
|
protected java.lang.String |
getHeader(java.lang.String name)
Returns the header with the specified name.
|
protected java.lang.String[] |
getParameter(java.lang.String name)
Returns the values for the parameter with the specified name.
|
WebResource |
getPostResponse() |
WebResource |
getPutResponse() |
protected java.io.Reader |
getReader()
Returns a reader for the body of the request.
|
protected HttpRequest |
getRequest() |
WebResource |
getResponse(java.lang.String methodType)
Returns a resource object as a result of a get request.
|
public static final java.lang.String CONTENTS
public WebResource getResponse(java.lang.String methodType) throws java.io.IOException
java.io.IOExceptionpublic WebResource getGetResponse() throws java.io.IOException
java.io.IOExceptionpublic WebResource getPostResponse() throws java.io.IOException
java.io.IOExceptionpublic WebResource getPutResponse() throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getHeader(java.lang.String name)
protected java.lang.String[] getParameter(java.lang.String name)
protected java.io.Reader getReader()
protected byte[] getBody()
protected HttpRequest getRequest()