Package com.arbortext.e3
Interface E3Response
- All Superinterfaces:
E3RequestResponse
Represents the non-body part of an HTTP response for use by the PE Request Manager.
This is a "new style" response object: the response data is in an XML document in the transaction directory, the body is in a parallel file in the same directory.
-
Field Summary
Fields inherited from interface com.arbortext.e3.E3RequestResponse
STATE_FILE, STATE_FILE_DELETE, STATE_MAXIMUM, STATE_MINIMUM, STATE_PAGE, STATE_REDIRECT, STATE_SC, STATE_SC_MSG -
Method Summary
Modifier and TypeMethodDescriptioncreateSubtree(Document doc, Element top) Constructs a DOM document or subdocument describing this response.Returns the error message string.Returns the redirect target string.longReturns the redirect body file string.voidsaveXmlFile(File target) Writes this object to disk as an XML document.voidsetRedirectTransactionId(long redirectTransactionId) Store redirect transaction id.Methods inherited from interface com.arbortext.e3.E3RequestResponse
addDateHeader, addHeader, addIntHeader, containsHeader, getAlternateArchiveFlag, getArchiveFlag, getCharacterEncoding, getCode, getHeaderNames, getHeaderValues, getLocale, getOutputFile, getRecycleSubprocessFlag, getState, getString, hasFileResult, hasStringResult, reset, sendError, sendError, sendRedirect, setAlternateArchiveFlag, setArchiveFlag, setContentLength, setContentType, setDateHeader, setHeader, setIntHeader, setLocale, setOutputFile, setOutputPage, setOutputPath, setRecycleSubprocessFlag, setStatus
-
Method Details
-
createSubtree
Constructs a DOM document or subdocument describing this response.- Parameters:
doc- document which will contain subtreetop- top-level container (null to create)- Returns:
- top of container; this will be 'top' or the element we create.
-
getErrorMessage
String getErrorMessage()Returns the error message string.- Returns:
Stringerror message ornull.
-
saveXmlFile
Writes this object to disk as an XML document.- Parameters:
target- file to write to- Throws:
IOException- upon I/O errorException
-
getRedirectTarget
String getRedirectTarget()Returns the redirect target string.- Returns:
Stringtarget ornullif this response does not represent a redirect.
-
getRedirectTransactionId
long getRedirectTransactionId()Returns the redirect body file string.- Returns:
intredirection transaction id. If there is no transaction id, return negative value.
-
setRedirectTransactionId
void setRedirectTransactionId(long redirectTransactionId) Store redirect transaction id. Only when the response uses the redirect one that we need to use the method.
-