net.wotonomy.web
Class WOResponse

java.lang.Object
  extended by net.wotonomy.web.WOMessage
      extended by net.wotonomy.web.WOResponse
All Implemented Interfaces:
WOActionResults
Direct Known Subclasses:
WORequest

public class WOResponse
extends WOMessage
implements WOActionResults

A pure java implementation of WOResponse.

Version:
$Revision: 905 $
Author:
michael@mpowers.net, $Author: cgruber $

Field Summary
protected static java.lang.String defaultEncoding
           
 
Fields inherited from class net.wotonomy.web.WOMessage
_contentData, _contentEncoding, _cookies, _headers
 
Constructor Summary
WOResponse()
          Parameterless constructor which should not be called.
 
Method Summary
static java.lang.String defaultEncoding()
          Returns the current default encoding seting.
 void disableClientCaching()
          Sets a header in the response to disable client caching.
 WOResponse generateResponse()
          Returns this object.
static void setDefaultEncoding(java.lang.String encoding)
          Sets the default encoding setting.
 void setStatus(int code)
          Sets the status code of the response.
 int status()
          Gets the current status code for the response.
 
Methods inherited from class net.wotonomy.web.WOMessage
addCookie, appendContentCharacter, appendContentData, appendContentHTMLAttributeValue, appendContentHTMLString, appendContentString, content, contentEncoding, cookies, headerForKey, headerKeys, headersForKey, httpVersion, removeCookie, setContent, setContentEncoding, setHeader, setHeaders, setHTTPVersion, setUserInfo, stringByEscapingHTMLAttributeValue, stringByEscapingHTMLString, userInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultEncoding

protected static java.lang.String defaultEncoding
Constructor Detail

WOResponse

public WOResponse()
Parameterless constructor which should not be called.

Method Detail

setStatus

public void setStatus(int code)
Sets the status code of the response. You should use the constants defined in HttpServletResponse.


status

public int status()
Gets the current status code for the response.


disableClientCaching

public void disableClientCaching()
Sets a header in the response to disable client caching. (Whether this works depends on the client implementation.)


generateResponse

public WOResponse generateResponse()
Returns this object. (Implements the WOActionResults interface.)

Specified by:
generateResponse in interface WOActionResults

defaultEncoding

public static java.lang.String defaultEncoding()
Returns the current default encoding seting.


setDefaultEncoding

public static void setDefaultEncoding(java.lang.String encoding)
Sets the default encoding setting.



Copyright © 2006 null. All Rights Reserved.