ariba.ui.servletadaptor
Class AWServletResponse

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

public class AWServletResponse
extends AWBaseResponse

An @{link ariba.ui.aribaweb.core.AWResponse} that ultimately writes its data to an HttpServletResponse.


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
 
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
AWServletResponse()
           
 
Method Summary
 byte[] _debugGetSemanticKeyMapping()
           
 java.util.Map _debugHeaders()
           
 void _debugSetRecordPlaybackParameters(AWRecordingManager recordingMgr, boolean inPlayback)
           
 void _debugSetSemanticKeyMapping(byte[] bytes)
           
 byte[] content()
           
 int contentLength()
           
 AWCookie createCookie(java.lang.String cookieName, java.lang.String cookieValue)
           
 void disableClientCaching()
           
 int getStatus()
          This will return a HTTP code, or -1 for an uninitialized value.
 void init()
           
 void setContent(byte[] bytes)
           
 void setContentFromFile(java.lang.String filePath)
           
 void setContentFromStream(java.io.InputStream stream)
           
 void setHeaderForKey(java.lang.String headerValue, java.lang.String headerKey)
           
 void setHeadersForKey(java.lang.String[] headerValues, java.lang.String headerKey)
           
 void setStatus(int status)
           
 
Methods inherited from class ariba.ui.aribaweb.core.AWBaseResponse
_debugIsStreamingResponse, addCookie, appendContent, appendContent, appendContent, appendContent, browserCachingEnabled, characterEncoding, contentString, contentType, currentRegionIsScope, elementIdToSemanticKeyTable, flushSizeStat, generateResponse, generateStringContents, hasIncrementalChange, hasNoChangeBufferChanged, hasRootBufferChanged, init, isContentGeneration, isDeferred, semanticKeyToElementIdTable, setBrowserCachingEnabled, setCharacterEncoding, setContentType, 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
 

Constructor Detail

AWServletResponse

public AWServletResponse()
Method Detail

init

public void init()
Specified by:
init in interface AWResponse
Specified by:
init in interface AWObject
Overrides:
init 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)

setStatus

public void setStatus(int status)

getStatus

public int getStatus()
This will return a HTTP code, or -1 for an uninitialized value.

Returns:

setContentFromFile

public void setContentFromFile(java.lang.String filePath)

setContentFromStream

public void setContentFromStream(java.io.InputStream stream)
Overrides:
setContentFromStream in class AWBaseResponse

setContent

public void setContent(byte[] bytes)

content

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

contentLength

public int contentLength()
Overrides:
contentLength in class AWBaseResponse

disableClientCaching

public void disableClientCaching()

createCookie

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

_debugHeaders

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

_debugSetRecordPlaybackParameters

public void _debugSetRecordPlaybackParameters(AWRecordingManager recordingMgr,
                                              boolean inPlayback)
Specified by:
_debugSetRecordPlaybackParameters in interface AWResponse
Overrides:
_debugSetRecordPlaybackParameters 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


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