ariba.ui.aribaweb.core
Class AWWriterResponse

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.core.AWBaseResponse
          extended by ariba.ui.aribaweb.core.AWWriterResponse
All Implemented Interfaces:
AWResponse, AWResponseGenerating, AWObject

public class AWWriterResponse
extends AWBaseResponse

An AWResponse capable of populating an OutputStream.


Nested Class Summary
 
Nested classes/interfaces inherited from class ariba.ui.aribaweb.core.AWBaseResponse
AWBaseResponse.AWResponseCompleteCallback
 
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponse
AWResponse.StatusCodes
 
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating
AWResponseGenerating.ResponseSubstitution
 
Field Summary
static java.lang.String IndentChars
           
 
Fields inherited from class ariba.ui.aribaweb.core.AWBaseResponse
PageGenerationSizeCounter, ResponseSizeCounter
 
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber
 
Constructor Summary
AWWriterResponse(java.io.Writer writer)
           
AWWriterResponse(java.io.Writer writer, AWCharacterEncoding characterEncoding)
           
 
Method Summary
 byte[] _debugGetSemanticKeyMapping()
           
 java.util.Map _debugHeaders()
           
 void _debugSetRecordPlaybackParameters(AWRecordingManager recordingMgr, boolean appendSemanticKeys)
           
 void _debugSetSemanticKeyMapping(byte[] bytes)
           
 void addCookie(AWCookie cookie)
           
 void appendContent(AWEncodedString encodedString)
           
 void appendContent(char contentChar)
           
 void appendContent(java.lang.String string)
           
 boolean browserCachingEnabled()
           
 AWCharacterEncoding characterEncoding()
           
 byte[] content()
           
 java.lang.String contentString()
           
 AWContentType contentType()
           
 AWCookie createCookie(java.lang.String cookieName, java.lang.String cookieValue)
           
 void decrementIndentationLevel()
           
 void disableClientCaching()
           
 java.util.Map elementIdToSemanticKeyTable()
           
 void flush()
           
 AWResponse generateResponse()
           
 java.lang.String generateStringContents()
           
 boolean hasRefreshRegions()
           
 void incrementIndentationLevel()
           
 void init()
           
 void init(AWCharacterEncoding characterEncoding)
           
 java.util.Map semanticKeyToElementIdTable()
           
 void setBrowserCachingEnabled(boolean flag)
           
 void setCharacterEncoding(AWCharacterEncoding characterEncoding)
           
 void setContent(byte[] bytes)
           
 void setContentFromFile(java.lang.String filePath)
           
 void setContentType(AWContentType contentType)
           
 void setHeaderForKey(java.lang.String headerValue, java.lang.String headerKey)
           
 void setHeadersForKey(java.lang.String[] headerValues, java.lang.String headerKey)
           
 void setPreviousResponse(AWResponse response)
           
 void setRefreshRegionPollInterval(int pollInterval)
           
 void setStatus(int statusCode)
           
 void startRefreshRegion(AWEncodedString refreshRegionName)
           
 void stopRefreshRegion(AWEncodedString refreshRegionName)
           
 
Methods inherited from class ariba.ui.aribaweb.core.AWBaseResponse
_debugIsStreamingResponse, appendContent, contentLength, currentRegionIsScope, flushSizeStat, hasIncrementalChange, hasNoChangeBufferChanged, hasRootBufferChanged, isContentGeneration, isDeferred, setContentFromStream, setDeferred, setIsContentGeneration, writeContent, writeFullContent
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IndentChars

public static final java.lang.String IndentChars
See Also:
Constant Field Values
Constructor Detail

AWWriterResponse

public AWWriterResponse(java.io.Writer writer,
                        AWCharacterEncoding characterEncoding)

AWWriterResponse

public AWWriterResponse(java.io.Writer writer)
Method Detail

flush

public void flush()

characterEncoding

public AWCharacterEncoding characterEncoding()
Specified by:
characterEncoding in interface AWResponse
Overrides:
characterEncoding in class AWBaseResponse

appendContent

public void appendContent(AWEncodedString encodedString)
Specified by:
appendContent in interface AWResponse
Overrides:
appendContent in class AWBaseResponse

appendContent

public void appendContent(java.lang.String string)
Specified by:
appendContent in interface AWResponse
Overrides:
appendContent in class AWBaseResponse

setContentType

public void setContentType(AWContentType contentType)
Specified by:
setContentType in interface AWResponse
Overrides:
setContentType in class AWBaseResponse

setCharacterEncoding

public void setCharacterEncoding(AWCharacterEncoding characterEncoding)
Specified by:
setCharacterEncoding in interface AWResponse
Overrides:
setCharacterEncoding in class AWBaseResponse

init

public void init(AWCharacterEncoding characterEncoding)
Specified by:
init in interface AWResponse
Overrides:
init in class AWBaseResponse

init

public void init()
Specified by:
init in interface AWResponse
Specified by:
init in interface AWObject
Overrides:
init in class AWBaseResponse

startRefreshRegion

public void startRefreshRegion(AWEncodedString refreshRegionName)

stopRefreshRegion

public void stopRefreshRegion(AWEncodedString refreshRegionName)

hasRefreshRegions

public boolean hasRefreshRegions()

setRefreshRegionPollInterval

public void setRefreshRegionPollInterval(int pollInterval)

setPreviousResponse

public void setPreviousResponse(AWResponse response)

appendContent

public void appendContent(char contentChar)
Specified by:
appendContent in interface AWResponse
Overrides:
appendContent in class AWBaseResponse

setContentFromFile

public void setContentFromFile(java.lang.String filePath)

setContent

public void setContent(byte[] bytes)

contentString

public java.lang.String contentString()
Specified by:
contentString in interface AWResponse
Overrides:
contentString in class AWBaseResponse

content

public byte[] content()
Specified by:
content in interface AWResponse
Overrides:
content in class AWBaseResponse

setHeaderForKey

public void setHeaderForKey(java.lang.String headerValue,
                            java.lang.String headerKey)

setHeadersForKey

public void setHeadersForKey(java.lang.String[] headerValues,
                             java.lang.String headerKey)

contentType

public AWContentType contentType()
Specified by:
contentType in interface AWResponse
Overrides:
contentType in class AWBaseResponse

setStatus

public void setStatus(int statusCode)

setBrowserCachingEnabled

public void setBrowserCachingEnabled(boolean flag)
Specified by:
setBrowserCachingEnabled in interface AWResponse
Overrides:
setBrowserCachingEnabled in class AWBaseResponse

browserCachingEnabled

public boolean browserCachingEnabled()
Specified by:
browserCachingEnabled in interface AWResponse
Overrides:
browserCachingEnabled in class AWBaseResponse

disableClientCaching

public void disableClientCaching()

createCookie

public AWCookie createCookie(java.lang.String cookieName,
                             java.lang.String cookieValue)

addCookie

public void addCookie(AWCookie cookie)
Specified by:
addCookie in interface AWResponse
Overrides:
addCookie in class AWBaseResponse

elementIdToSemanticKeyTable

public java.util.Map elementIdToSemanticKeyTable()
Specified by:
elementIdToSemanticKeyTable in interface AWResponse
Overrides:
elementIdToSemanticKeyTable in class AWBaseResponse

semanticKeyToElementIdTable

public java.util.Map semanticKeyToElementIdTable()
Specified by:
semanticKeyToElementIdTable in interface AWResponse
Overrides:
semanticKeyToElementIdTable in class AWBaseResponse

_debugSetSemanticKeyMapping

public void _debugSetSemanticKeyMapping(byte[] bytes)
Specified by:
_debugSetSemanticKeyMapping in interface AWResponse
Overrides:
_debugSetSemanticKeyMapping in class AWBaseResponse

_debugGetSemanticKeyMapping

public byte[] _debugGetSemanticKeyMapping()
Specified by:
_debugGetSemanticKeyMapping in interface AWResponse
Overrides:
_debugGetSemanticKeyMapping in class AWBaseResponse

_debugHeaders

public java.util.Map _debugHeaders()
Specified by:
_debugHeaders in interface AWResponse
Overrides:
_debugHeaders in class AWBaseResponse

_debugSetRecordPlaybackParameters

public void _debugSetRecordPlaybackParameters(AWRecordingManager recordingMgr,
                                              boolean appendSemanticKeys)
Specified by:
_debugSetRecordPlaybackParameters in interface AWResponse
Overrides:
_debugSetRecordPlaybackParameters in class AWBaseResponse

generateResponse

public AWResponse generateResponse()
Specified by:
generateResponse in interface AWResponseGenerating
Overrides:
generateResponse in class AWBaseResponse

generateStringContents

public java.lang.String generateStringContents()
Specified by:
generateStringContents in interface AWResponseGenerating
Overrides:
generateStringContents in class AWBaseResponse

incrementIndentationLevel

public void incrementIndentationLevel()

decrementIndentationLevel

public void decrementIndentationLevel()


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.