Sonic ESB API

com.sonicsw.xq.service.xform
Class HeaderExtension

java.lang.Object
  extended by com.sonicsw.xq.service.xform.HeaderExtension

public class HeaderExtension
extends java.lang.Object

Saxon extension function that provides access to XQMessage header properties.


Constructor Summary
HeaderExtension()
          Constructor.
 
Method Summary
 java.lang.Object getProperty(XPathContext context, java.lang.String propertyName, int msgPartIndex)
          Retrieves the value of the specified propertyName from the specified part or XQMessage header.
 void setProperty(XPathContext context, java.lang.String propertyName, java.lang.String propertyValue, int msgPartIndex)
          Set the value of a specified property into the specified part or XQMessage header.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderExtension

public HeaderExtension()
Constructor.

Method Detail

getProperty

public java.lang.Object getProperty(XPathContext context,
                                    java.lang.String propertyName,
                                    int msgPartIndex)
                             throws XQServiceException
Retrieves the value of the specified propertyName from the specified part or XQMessage header.

Parameters:
context - XPathContext
propertyName - name of the property whose value is to be retrieved.
msgPartIndex - index of the XSMessage or part. value is -1 for XQMessage and 0-n for parts.
Returns:
value of the property.
Throws:
XQServiceException

setProperty

public void setProperty(XPathContext context,
                        java.lang.String propertyName,
                        java.lang.String propertyValue,
                        int msgPartIndex)
                 throws XQServiceException
Set the value of a specified property into the specified part or XQMessage header.

Parameters:
context - XPathContext
propertyName - name of the property whose value is to be set.
propertyValue - value of the property.
msgPartIndex - index of the XSMessage or part; -1 for XQMessage and 0-n for parts.
Throws:
XQServiceException

Sonic ESB API

Copyright © 2001-2012 Progress Software Corporation. All Rights Reserved.
HTML formatted on 13-Mar-2012.