ariba.ui.aribaweb.core
Class AWBaseResponse

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

public abstract class AWBaseResponse
extends AWBaseObject
implements AWResponse


Nested Class Summary
static interface 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 PerformanceStateCounter PageGenerationSizeCounter
           
static PerformanceStateCounter 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
AWBaseResponse()
           
 
Method Summary
 byte[] _debugGetSemanticKeyMapping()
           
 java.util.Map _debugHeaders()
           
 boolean _debugIsStreamingResponse()
           
 void _debugSetRecordPlaybackParameters(AWRecordingManager recordingMgr, boolean appendSemanticKeys)
           
 void _debugSetSemanticKeyMapping(byte[] bytes)
           
 void addCookie(AWCookie cookie)
           
 void appendContent(AWBaseResponse response)
           
 void appendContent(AWEncodedString encodedString)
           
 void appendContent(char contentChar)
           
 void appendContent(java.lang.String contentString)
           
 boolean browserCachingEnabled()
           
 AWCharacterEncoding characterEncoding()
           
 byte[] content()
           
 int contentLength()
           
 java.lang.String contentString()
           
 AWContentType contentType()
           
 boolean currentRegionIsScope()
           
 java.util.Map elementIdToSemanticKeyTable()
           
 void flushSizeStat()
           
 AWResponse generateResponse()
           
 java.lang.String generateStringContents()
           
 boolean hasIncrementalChange()
           
 boolean hasNoChangeBufferChanged(AWBaseResponse previousReponse)
           
 boolean hasRootBufferChanged(AWBaseResponse previousReponse)
           
 void init()
           
 void init(AWCharacterEncoding characterEncoding)
           
 boolean isContentGeneration()
          Set to indicate a response that does not need to be cached in the requestHistory.
 boolean isDeferred()
           
 java.util.Map semanticKeyToElementIdTable()
           
 void setBrowserCachingEnabled(boolean flag)
           
 void setCharacterEncoding(AWCharacterEncoding characterEncoding)
           
 void setContentFromStream(java.io.InputStream stream)
           
 void setContentType(AWContentType contentType)
           
 void setDeferred(boolean flag)
           
 void setIsContentGeneration(boolean b)
           
 void writeContent(java.io.OutputStream outputStream)
           
 void writeFullContent(java.io.OutputStream outputStream)
           
 
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
 
Methods inherited from interface ariba.ui.aribaweb.core.AWResponse
createCookie, disableClientCaching, setContent, setContentFromFile, setHeaderForKey, setHeadersForKey, setStatus
 

Field Detail

ResponseSizeCounter

public static PerformanceStateCounter ResponseSizeCounter

PageGenerationSizeCounter

public static PerformanceStateCounter PageGenerationSizeCounter
Constructor Detail

AWBaseResponse

public AWBaseResponse()
Method Detail

init

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

currentRegionIsScope

public boolean currentRegionIsScope()

hasRootBufferChanged

public boolean hasRootBufferChanged(AWBaseResponse previousReponse)

hasNoChangeBufferChanged

public boolean hasNoChangeBufferChanged(AWBaseResponse previousReponse)

init

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

setContentType

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

contentType

public AWContentType contentType()
Specified by:
contentType in interface AWResponse

setContentFromStream

public void setContentFromStream(java.io.InputStream stream)

contentLength

public int contentLength()

setCharacterEncoding

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

characterEncoding

public AWCharacterEncoding characterEncoding()
Specified by:
characterEncoding in interface AWResponse

appendContent

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

appendContent

public void appendContent(java.lang.String contentString)
Specified by:
appendContent in interface AWResponse

appendContent

public void appendContent(AWBaseResponse response)

appendContent

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

flushSizeStat

public void flushSizeStat()

writeContent

public void writeContent(java.io.OutputStream outputStream)

writeFullContent

public void writeFullContent(java.io.OutputStream outputStream)

contentString

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

content

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

generateResponse

public AWResponse generateResponse()
Specified by:
generateResponse in interface AWResponseGenerating

generateStringContents

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

setBrowserCachingEnabled

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

browserCachingEnabled

public boolean browserCachingEnabled()
Specified by:
browserCachingEnabled in interface AWResponse

addCookie

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

isContentGeneration

public boolean isContentGeneration()
Set to indicate a response that does not need to be cached in the requestHistory. This is useful for responses that are primarily download type responses.


setIsContentGeneration

public void setIsContentGeneration(boolean b)

_debugIsStreamingResponse

public boolean _debugIsStreamingResponse()

isDeferred

public boolean isDeferred()

setDeferred

public void setDeferred(boolean flag)

hasIncrementalChange

public boolean hasIncrementalChange()

elementIdToSemanticKeyTable

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

semanticKeyToElementIdTable

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

_debugHeaders

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

_debugSetRecordPlaybackParameters

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

_debugSetSemanticKeyMapping

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

_debugGetSemanticKeyMapping

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


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