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()
ServiceResponse
getResponseDocument
in interface ServiceResponse
public void setResponseDocument(Document doc)
ServiceResponse
setResponseDocument
in interface ServiceResponse
public boolean isDocumentMode()
ServiceResponse
isDocumentMode
in interface ServiceResponse
public void setDocumentMode(boolean mode)
ServiceResponse
setDocumentMode
in interface ServiceResponse
isDocumentMode
public javax.servlet.http.HttpServletResponse getResponse()
ServiceResponse
getResponse
in interface ServiceResponse
Copyright © 2008-2015 Index Data. All Rights Reserved.