public abstract class PseudoServlet extends Object
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 String |
getHeader(String name)
Returns the header with the specified name.
|
protected String[] |
getParameter(String name)
Returns the values for the parameter with the specified name.
|
WebResource |
getPostResponse() |
WebResource |
getPutResponse() |
protected Reader |
getReader()
Returns a reader for the body of the request.
|
protected HttpRequest |
getRequest() |
WebResource |
getResponse(String methodType)
Returns a resource object as a result of a get request.
|
public static final String CONTENTS
public WebResource getResponse(String methodType) throws IOException
IOException
public WebResource getGetResponse() throws IOException
IOException
public WebResource getPostResponse() throws IOException
IOException
public WebResource getPutResponse() throws IOException
IOException
protected String getHeader(String name)
protected String[] getParameter(String name)
protected Reader getReader()
protected byte[] getBody()
protected HttpRequest getRequest()
Copyright © 2012. All Rights Reserved.