public class WebResource extends Object
Constructor and Description |
---|
WebResource(byte[] contents,
String contentType) |
WebResource(byte[] contents,
String contentType,
int responseCode) |
WebResource(InputStream stream,
String contentType,
int responseCode) |
WebResource(String contents) |
WebResource(String contents,
int responseCode) |
WebResource(String contents,
String contentType) |
WebResource(String contents,
String contentType,
int responseCode) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String header) |
void |
setCharacterSet(String characterSet) |
void |
setSendCharacterSet(boolean enabled) |
void |
suppressAutomaticContentTypeHeader() |
void |
suppressAutomaticLengthHeader() |
String |
toString() |
public WebResource(String contents)
public WebResource(byte[] contents, String contentType)
public WebResource(String contents, int responseCode)
public WebResource(byte[] contents, String contentType, int responseCode)
public WebResource(InputStream stream, String contentType, int responseCode)
public void addHeader(String header)
public void setCharacterSet(String characterSet)
public void setSendCharacterSet(boolean enabled)
public void suppressAutomaticLengthHeader()
public void suppressAutomaticContentTypeHeader()
Copyright © 2012. All Rights Reserved.