AQxmlCallbackContext - Oracle 9i

Syntax

Description

This is the context passed to the user before/after callback functions This CallbackContext has methods to retrieve the parsed XML document, get a JDBC connection to the AQ database, override the response stream sent by the servlet and set the xml style sheet for the response

AQxmlCallbackContext

Methods
getDBConnection()

public java.sql.Connection getDBConnection()

Get the JDBC connection that is used to perform this request Users can perform SQL operations using this database connection. The operations performed will be part of the same transaction as the AQ operations. They will be committed or aborted when the AQ operation in the IDAP message is committed or aborted. Users cannot call commit/rollback on these connections. Commit/Rollback has to be done by sending an IDAP message to the servlet.

getOverrideAQResponseFlag()

public boolean getOverrideAQResponseFlag()

getServerResponseDoc()

public AQxmlDocument getServerResponseDoc()

Get the AQxmlDocument representing the response that will be sent back from the servlet. This is available only in the afterAQOperation callback

getStyleSheetProcessingInstr()

public java.lang.String getStyleSheetProcessingInstr()

Get the stylesheet processing instruction for the XML response

parseRequestStream()

public oracle.AQ.xml.Document parseRequestStream()

Parse the XML document in the servlet request

setOverrideAQResponseFlag(boolean)

public void setOverrideAQResponseFlag(boolean value)

Set flag to override the response sent back by the AQ servlet. The AQ servlet sends back an IDAP response to the requestor. User callbacks can set this flag if they want to write their own response instead of the one sent back by AQ

setStyleSheet(String, String)

public void setStyleSheet(java.lang.String type, java.lang.String href)

Set StyleSheet for the XML response. This can be used to set a xml-stylesheet processing instruction for the XML responses that will be sent fo this request

Parameters:

type - stylesheet type (Example: "text/xml")
href - stylesheet href (Example: "http://www.aq.com/AQ/xslt.html" )

Throws:

AQxmlException - if invalid parameters specified

setStyleSheetProcessingInstr(String)

public void setStyleSheetProcessingInstr(java.lang.String proc_instr)

Set StyleSheet processing instruction for the XML response. This can be used to set a xml-stylesheet processing instruction for the XML responses that will be sent fo this request

Parameters:

proc_instr - stylesheet processing instruction
(Example: "type="text/xsl" href="http://www.oa.com/AQ/xslt23.html"" )

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics