|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.meterware.pseudoserver.PseudoServlet
A basic simulated servlet for testing the HttpUnit library.
| Field Summary | |
static java.lang.String |
CONTENTS
|
| Constructor Summary | |
PseudoServlet()
|
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CONTENTS
| Constructor Detail |
public PseudoServlet()
| Method Detail |
public WebResource getResponse(java.lang.String methodType)
throws java.io.IOException
java.io.IOException
public WebResource getGetResponse()
throws java.io.IOException
java.io.IOException
public WebResource getPostResponse()
throws java.io.IOException
java.io.IOException
public 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()
|
Copyright © 2000-2008 Russell Gold. See license agreement for rights granted. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||