public class SimpleServiceResponse extends Object implements ServiceResponse
| Constructor and Description |
|---|
SimpleServiceResponse(javax.servlet.http.HttpServletResponse response,
String chainName) |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.HttpServletResponse |
getResponse()
Current direct (wrapped) HTTP response.
|
Document |
getResponseDocument()
Returns the current response XML document that plugins should append to.
|
boolean |
isDocumentMode()
Once a plugin in the chain calls getResponseDocument, the response switches
to the document mode and any consecutive call to output stream will cause an
exception.
|
void |
setDocumentMode(boolean mode)
Used when a plug-in needs to force direct mode after another plug-in in
the chain has triggered document mode by setting a response document.
|
void |
setResponseDocument(Document doc)
(Re)set the response document.
|
public SimpleServiceResponse(javax.servlet.http.HttpServletResponse response,
String chainName)
public Document getResponseDocument()
ServiceResponsegetResponseDocument in interface ServiceResponsepublic void setResponseDocument(Document doc)
ServiceResponsesetResponseDocument in interface ServiceResponsepublic boolean isDocumentMode()
ServiceResponseisDocumentMode in interface ServiceResponsepublic void setDocumentMode(boolean mode)
ServiceResponsesetDocumentMode in interface ServiceResponseisDocumentModepublic javax.servlet.http.HttpServletResponse getResponse()
ServiceResponsegetResponse in interface ServiceResponseCopyright © 2008-2015 Index Data. All Rights Reserved.