|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.xml.xsql.XSQLPageRequestImpl
Base implementation of the XSQLPageRequest interface that case be used to derive new kinds of page request implementations.
| Field Summary | |
protected java.util.Hashtable |
_pageParameters |
protected java.util.Hashtable |
_styleParams |
protected boolean |
alreadyGotOutputStream |
protected boolean |
alreadyGotWriter |
protected java.lang.String |
baseuri |
protected XSQLConnection |
conn |
protected XSQLConnectionManagerFactory |
connFactory |
protected static java.lang.String |
EQUALS |
protected java.io.PrintWriter |
err |
protected boolean |
errorHeader |
protected java.io.PrintWriter |
out |
protected java.lang.String |
outputEncoding |
protected java.io.OutputStream |
outStream |
protected java.lang.String |
pageurl |
protected java.util.Dictionary |
parameters |
protected XSQLErrorHandler |
perPageErrorWriter |
protected Document |
postedDocument |
protected XSQLError |
processingError |
protected java.lang.String |
requestedPageEncoding |
protected java.lang.String |
styleURI |
| Constructor Summary | |
XSQLPageRequestImpl() | |
XSQLPageRequestImpl(java.lang.String pageurl, java.util.Hashtable parameters) | |
| Method Summary | |
java.lang.String |
getBaseURI()Returns a String representation of the requested document's Base URI |
XSQLConnectionManagerFactory |
getConnectionManagerFactory()Returns the instance of the connection manager factory to use for this request |
java.lang.String |
getConnectionName()Returns the name of the connection being used for this request May be null if no connection set/in-use. |
java.io.PrintWriter |
getErrorWriter()Returns a PrintWriter to print out errors processing this request |
java.sql.Connection |
getJDBCConnection()Gets the JDBC connection being used for this request (can be null) |
java.io.OutputStream |
getOutputStream()Returns an OutputStream used for writing out the results of a page request |
java.lang.String |
getPageEncoding()Returns encoding of source XSQL Page associated with this request |
protected java.lang.String |
getPageParam(java.lang.String name) |
protected java.lang.String[] |
getPageParamValues(java.lang.String name) |
java.lang.String |
getParameter(java.lang.String name)Returns the value of the requested parameter |
java.lang.String[] |
getParameterValues(java.lang.String name)Returns an array of values for the requested parameter |
Document |
getPostedDocument()Returns the content of Posted XML for this request as an XML Document |
java.lang.Object |
getRequestObject(java.lang.String name)Gets a request-scope object |
Document |
getRequestParamsAsXMLDocument()Returns the content of a Request parameters as an XML Document |
java.lang.String |
getSourceDocumentURI()Returns a String representation of the requested document's URI |
java.lang.String |
getStylesheetParameter(java.lang.String name)Gets a stylesheet parameter by name |
java.util.Enumeration |
getStylesheetParameters()Gets an enumeration of stylesheet parameter names |
java.lang.String |
getStylesheetURI()Returns the URI of the stylesheet to be used to process the result. |
protected XSQLPageRequest |
getTopRequest() |
java.lang.String |
getUserAgent()Returns a String identifier of the requesting program |
java.io.PrintWriter |
getWriter()Returns a PrintWriter used for writing out the results of a page request |
XSQLConnection |
getXSQLConnection()Gets the XSQLConnection Object being used for this request Might be null. |
oracle.xml.xsql.XSQLPage |
getXSQLPage()Returns an instance of an XSQLPage representing the current request |
boolean |
isErrorSignalled()Returns true if processing error has occurred during this request |
boolean |
isIncludedRequest()Returns true if this request is being included in another. |
boolean |
isOracleDriver()Returns true if the current connection uses the Oracle JDBC Driver |
boolean |
isUseOutputStream()Returns true if request is using an output stream instead of a PrintWriter |
boolean |
printedErrorHeader()Returns the state of whether an Error Header has been printed |
void |
requestProcessed()Allows Page Request to Perform end-of-request processing |
void |
setConnectionName(java.lang.String connName)Sets the connection being used for this request (can be null) |
void |
setContentType(java.lang.String mimetype)Sets the content type of the resulting page |
void |
setErrorHandlerClass(java.lang.String className)Sets classname to use to override default ErrorWriter for this request. |
void |
setIncludingRequest(XSQLPageRequest includingEnv)Sets the Including Page Request object for this request. |
void |
setPageEncoding(java.lang.String enc)Associates an XSQL Page with the request |
void |
setPageParam(java.lang.String name, java.lang.String value)Sets a dynamic page parameter value. |
void |
setPageParam(java.lang.String name, java.lang.String[] value)Sets a dynamic page parameter value to a string array |
void |
setPostedDocument(Document doc)Allows programmatic setting of the Posted Document |
void |
setPrintedErrorHeader(boolean yes)Sets whether an Error Header has been printed |
void |
setRequestObject(java.lang.String name, java.lang.Object obj)Sets a request-scope object |
void |
setStylesheetParameter(java.lang.String name, java.lang.String value)Sets the value of a parameter to be passed to the associated stylesheet |
void |
setStylesheetURI(java.lang.String uri)Sets the URI of the stylesheet to be used to process the result. |
protected void |
setTopRequest(XSQLPageRequest top) |
protected void |
setupErrorWriter() |
protected void |
setupOutputStream() |
protected void |
setupWriter() |
void |
signalError(int errorCode, java.lang.String[] errorMessageArgs, java.lang.Object[] supplementalErrorInfo)Signals a processing error for this request |
void |
signalError(java.lang.String message)Signals a processing error for this request |
java.lang.String |
translateURL(java.lang.String filename)Returns a string representing an absolute URL resolved relative to the base URI for this request. |
boolean |
useConnectionPooling()Returns true if connection pooling is desired for this request |
boolean |
useHTMLErrors()Returns true if HTML-formatted error messages are desired for this request |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.xml.xsql.XSQLPageRequest |
createNestedRequest, getRequestType |
| Field Detail |
protected static final java.lang.String EQUALS
protected java.lang.String outputEncoding
protected java.io.OutputStream outStream
protected java.io.PrintWriter out
protected java.io.PrintWriter err
protected java.lang.String styleURI
protected java.lang.String pageurl
protected java.lang.String baseuri
protected boolean alreadyGotWriter
protected boolean alreadyGotOutputStream
protected XSQLError processingError
protected XSQLErrorHandler perPageErrorWriter
protected XSQLConnectionManagerFactory connFactory
protected java.util.Dictionary parameters
protected java.util.Hashtable _pageParameters
protected java.util.Hashtable _styleParams
protected boolean errorHeader
protected java.lang.String requestedPageEncoding
protected XSQLConnection conn
protected Document postedDocument
| Constructor Detail |
public XSQLPageRequestImpl()
public XSQLPageRequestImpl(java.lang.String pageurl,
java.util.Hashtable parameters)
| Method Detail |
public boolean printedErrorHeader()
XSQLPageRequestprintedErrorHeader in interface XSQLPageRequestpublic void setPrintedErrorHeader(boolean yes)
XSQLPageRequestsetPrintedErrorHeader in interface XSQLPageRequestpublic boolean isUseOutputStream()
XSQLPageRequestisUseOutputStream in interface XSQLPageRequestprotected void setupWriter()
protected void setupErrorWriter()
public java.lang.String getParameter(java.lang.String name)
XSQLPageRequestgetParameter in interface XSQLPageRequestname - the name of the parameterpublic java.lang.String[] getParameterValues(java.lang.String name)
XSQLPageRequestgetParameterValues in interface XSQLPageRequestname - the name of the parameterpublic java.lang.String getSourceDocumentURI()
XSQLPageRequestgetSourceDocumentURI in interface XSQLPageRequestpublic java.lang.String getBaseURI()
XSQLPageRequestgetBaseURI in interface XSQLPageRequestpublic java.io.PrintWriter getWriter()
XSQLPageRequestgetWriter in interface XSQLPageRequestpublic java.io.PrintWriter getErrorWriter()
XSQLPageRequestgetErrorWriter in interface XSQLPageRequestpublic boolean useConnectionPooling()
XSQLPageRequestuseConnectionPooling in interface XSQLPageRequestpublic java.lang.String getUserAgent()
XSQLPageRequestgetUserAgent in interface XSQLPageRequestpublic void setContentType(java.lang.String mimetype)
XSQLPageRequestsetContentType in interface XSQLPageRequestpublic boolean useHTMLErrors()
XSQLPageRequestuseHTMLErrors in interface XSQLPageRequestpublic java.lang.String translateURL(java.lang.String filename)
XSQLPageRequesttranslateURL in interface XSQLPageRequestpublic void setStylesheetURI(java.lang.String uri)
XSQLPageRequestsetStylesheetURI in interface XSQLPageRequestpublic java.lang.String getStylesheetURI()
XSQLPageRequestgetStylesheetURI in interface XSQLPageRequestpublic Document getRequestParamsAsXMLDocument()
XSQLPageRequestgetRequestParamsAsXMLDocument in interface XSQLPageRequestpublic void setPostedDocument(Document doc)
XSQLPageRequestsetPostedDocument in interface XSQLPageRequestpublic Document getPostedDocument()
XSQLPageRequestgetPostedDocument in interface XSQLPageRequest
public void setStylesheetParameter(java.lang.String name,
java.lang.String value)
XSQLPageRequestsetStylesheetParameter in interface XSQLPageRequestpublic java.util.Enumeration getStylesheetParameters()
getStylesheetParameters in interface XSQLPageRequestpublic java.lang.String getStylesheetParameter(java.lang.String name)
getStylesheetParameter in interface XSQLPageRequestpublic void setPageEncoding(java.lang.String enc)
setPageEncoding in interface XSQLPageRequestpublic java.lang.String getPageEncoding()
getPageEncoding in interface XSQLPageRequest
public void setConnectionName(java.lang.String connName)
throws java.sql.SQLException
setConnectionName in interface XSQLPageRequestjava.sql.SQLExceptionpublic java.sql.Connection getJDBCConnection()
getJDBCConnection in interface XSQLPageRequestpublic XSQLConnection getXSQLConnection()
getXSQLConnection in interface XSQLPageRequestpublic void setIncludingRequest(XSQLPageRequest includingEnv)
setIncludingRequest in interface XSQLPageRequestpublic java.lang.String getConnectionName()
getConnectionName in interface XSQLPageRequestpublic void requestProcessed()
requestProcessed in interface XSQLPageRequestpublic boolean isOracleDriver()
isOracleDriver in interface XSQLPageRequestpublic boolean isIncludedRequest()
isIncludedRequest in interface XSQLPageRequest
public void setPageParam(java.lang.String name,
java.lang.String value)
setPageParam in interface XSQLPageRequest
public void setPageParam(java.lang.String name,
java.lang.String[] value)
XSQLPageRequestsetPageParam in interface XSQLPageRequestprotected java.lang.String getPageParam(java.lang.String name)
protected java.lang.String[] getPageParamValues(java.lang.String name)
public void setRequestObject(java.lang.String name,
java.lang.Object obj)
setRequestObject in interface XSQLPageRequestpublic java.lang.Object getRequestObject(java.lang.String name)
getRequestObject in interface XSQLPageRequestprotected void setTopRequest(XSQLPageRequest top)
protected XSQLPageRequest getTopRequest()
protected void setupOutputStream()
public java.io.OutputStream getOutputStream()
XSQLPageRequestgetOutputStream in interface XSQLPageRequest
public oracle.xml.xsql.XSQLPage getXSQLPage()
throws SAXParseException,
java.io.FileNotFoundException
XSQLPageRequestgetXSQLPage in interface XSQLPageRequestSAXParseExceptionjava.io.FileNotFoundExceptionpublic XSQLConnectionManagerFactory getConnectionManagerFactory()
XSQLPageRequestgetConnectionManagerFactory in interface XSQLPageRequestpublic boolean isErrorSignalled()
isErrorSignalled in interface XSQLPageRequest
public void signalError(int errorCode,
java.lang.String[] errorMessageArgs,
java.lang.Object[] supplementalErrorInfo)
signalError in interface XSQLPageRequestpublic void signalError(java.lang.String message)
signalError in interface XSQLPageRequest
public void setErrorHandlerClass(java.lang.String className)
throws oracle.xml.xsql.XSQLInitializationException
XSQLPageRequestsetErrorHandlerClass in interface XSQLPageRequestoracle.xml.xsql.XSQLInitializationException
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||