|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.wotonomy.web.WOMessage
public class WOMessage
A pure java implementation of WOResponse.
Field Summary | |
---|---|
protected net.wotonomy.foundation.NSMutableData |
_contentData
|
protected java.lang.String |
_contentEncoding
|
protected net.wotonomy.foundation.NSMutableDictionary |
_cookies
|
protected net.wotonomy.foundation.NSMutableDictionary |
_headers
|
Constructor Summary | |
---|---|
WOMessage()
|
Method Summary | |
---|---|
void |
addCookie(WOCookie aCookie)
Adds the specified cookie to the response. |
void |
appendContentCharacter(char character)
Appends the specified byte to the response. |
void |
appendContentData(net.wotonomy.foundation.NSData aData)
Appends the bytes in the specified data object to the response. |
void |
appendContentHTMLAttributeValue(java.lang.String aString)
Appends the specified string containing HTML to the response. |
void |
appendContentHTMLString(java.lang.String aString)
Appends the specified string containing HTML to the response. |
void |
appendContentString(java.lang.String aString)
Appends the specified string to the response. |
net.wotonomy.foundation.NSData |
content()
Retrieves the current content of the response. |
java.lang.String |
contentEncoding()
Gets the current content encoding for the response. |
net.wotonomy.foundation.NSArray |
cookies()
Returns an array of cookies currently being sent with the response. |
java.lang.String |
headerForKey(java.lang.String aKey)
Returns one header value for the specified key. |
net.wotonomy.foundation.NSArray |
headerKeys()
Returns an array of all the header keys that have been set in the response. |
net.wotonomy.foundation.NSArray |
headersForKey(java.lang.String aKey)
Returns an array of all the header values for the specified key, or null if the key does not exist. |
java.lang.String |
httpVersion()
Gets the current HTTP version header for the response. |
void |
removeCookie(WOCookie aCookie)
Removes the specified cookie from the response. |
void |
setContent(net.wotonomy.foundation.NSData aData)
Sets the content of the response to the bytes represented by the specified data object. |
void |
setContentEncoding(java.lang.String encoding)
Sets the content encoding for the response. |
void |
setHeader(java.lang.String aValue,
java.lang.String aKey)
Sets the specified header value for the specified key. |
void |
setHeaders(net.wotonomy.foundation.NSArray headerArray,
java.lang.String aKey)
Sets the specified array of values as headers under the specified key. |
void |
setHTTPVersion(java.lang.String aString)
Sets the HTTP version header in the response. |
void |
setUserInfo(net.wotonomy.foundation.NSDictionary aDict)
Sets the current user info dictionary. |
static java.lang.String |
stringByEscapingHTMLAttributeValue(java.lang.String aString)
Returns a sting containing the contents of the specified string after escaping all special HTML characters. |
static java.lang.String |
stringByEscapingHTMLString(java.lang.String aString)
Returns a sting containing the contents of the specified string after escaping all special HTML characters. |
net.wotonomy.foundation.NSDictionary |
userInfo()
Gets the current user info dictionary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String _contentEncoding
protected net.wotonomy.foundation.NSMutableDictionary _headers
protected net.wotonomy.foundation.NSMutableDictionary _cookies
protected net.wotonomy.foundation.NSMutableData _contentData
Constructor Detail |
---|
public WOMessage()
Method Detail |
---|
public void setContentEncoding(java.lang.String encoding)
public java.lang.String contentEncoding()
public void setHeaders(net.wotonomy.foundation.NSArray headerArray, java.lang.String aKey)
public void setHeader(java.lang.String aValue, java.lang.String aKey)
public net.wotonomy.foundation.NSArray headerKeys()
public net.wotonomy.foundation.NSArray headersForKey(java.lang.String aKey)
public java.lang.String headerForKey(java.lang.String aKey)
public void setContent(net.wotonomy.foundation.NSData aData)
public net.wotonomy.foundation.NSData content()
public void setUserInfo(net.wotonomy.foundation.NSDictionary aDict)
public net.wotonomy.foundation.NSDictionary userInfo()
public void appendContentData(net.wotonomy.foundation.NSData aData)
public void appendContentCharacter(char character)
public void appendContentString(java.lang.String aString)
public void appendContentHTMLString(java.lang.String aString)
public void appendContentHTMLAttributeValue(java.lang.String aString)
public void addCookie(WOCookie aCookie)
public void removeCookie(WOCookie aCookie)
public net.wotonomy.foundation.NSArray cookies()
public void setHTTPVersion(java.lang.String aString)
public java.lang.String httpVersion()
public static java.lang.String stringByEscapingHTMLString(java.lang.String aString)
public static java.lang.String stringByEscapingHTMLAttributeValue(java.lang.String aString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |