com.meterware.pseudoserver
Class WebResource
java.lang.Object
com.meterware.pseudoserver.WebResource
- public class WebResource
- extends java.lang.Object
A resource to be returned from the simulated server.
Constructor Summary |
WebResource(byte[] contents,
java.lang.String contentType)
|
WebResource(byte[] contents,
java.lang.String contentType,
int responseCode)
|
WebResource(java.io.InputStream stream,
java.lang.String contentType,
int responseCode)
|
WebResource(java.lang.String contents)
|
WebResource(java.lang.String contents,
int responseCode)
|
WebResource(java.lang.String contents,
java.lang.String contentType)
|
WebResource(java.lang.String contents,
java.lang.String contentType,
int responseCode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WebResource
public WebResource(java.lang.String contents)
WebResource
public WebResource(java.lang.String contents,
java.lang.String contentType)
WebResource
public WebResource(byte[] contents,
java.lang.String contentType)
WebResource
public WebResource(java.lang.String contents,
int responseCode)
WebResource
public WebResource(java.lang.String contents,
java.lang.String contentType,
int responseCode)
WebResource
public WebResource(byte[] contents,
java.lang.String contentType,
int responseCode)
WebResource
public WebResource(java.io.InputStream stream,
java.lang.String contentType,
int responseCode)
addHeader
public void addHeader(java.lang.String header)
setCharacterSet
public void setCharacterSet(java.lang.String characterSet)
setSendCharacterSet
public void setSendCharacterSet(boolean enabled)
suppressAutomaticLengthHeader
public void suppressAutomaticLengthHeader()
suppressAutomaticContentTypeHeader
public void suppressAutomaticContentTypeHeader()
toString
public java.lang.String toString()