com.meterware.pseudoserver
Class WebResource

java.lang.Object
  extended bycom.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)
           
 
Method Summary
 void addHeader(java.lang.String header)
           
 void setCharacterSet(java.lang.String characterSet)
           
 void setSendCharacterSet(boolean enabled)
           
 void suppressAutomaticContentTypeHeader()
           
 void suppressAutomaticLengthHeader()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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()

Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.