|
Java API Reference for Oracle Infrastructure Web Services 11 Release 1 (11.1.1) E10654-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.webservices.addressing.AddressingHelper
public class AddressingHelper
A helper class for dealing with ws addressing headers. This helper class supports setting/getting addressing headers for both client/service.
Constructor Summary | |
---|---|
AddressingHelper() |
Method Summary | |
---|---|
static void |
clearAllOutgoingAddressingProperties(Map<String,Object> context) clear out all the previous addressing settings on the outgoing context. |
static String |
generateNewMessageId() Generate a new UUID to be used as a message id |
static AddressingInfo |
getAddressingInfo(WebServiceContext wsCxt) create an AddressingInfo Object using the addressing properties that is based on the incoming message In other words, ReplyTO will become to, MsgId will be set in the RelatesTo etc null if no addressing properties are found. |
static String |
getIncomingAction(Map<String,Object> context) Resturns the message id set in the incoming request/reply in a call back or polling case, this method should only be called when the response becomes available |
static String |
getIncomingAction(MessageContext context) Resturns the message id set in the incoming request/reply in a call back or polling case, this method should only be called when the response becomes available |
static String |
getIncomingAddressingNamespace(Map<String,Object> context) returns the addressing namespace used in the incoming soap message header |
static String |
getIncomingFaultToAddress(Map<String,Object> context) get the fault to value from the incoming request |
static String |
getIncomingFaultToAddress(MessageContext context) get the fault to value from the incoming request |
static String |
getIncomingMessageId(Map<String,Object> context) Resturns the message id set in the incoming reply in a call back or polling case, this method should only be called when the response becomes available |
static String |
getIncomingMessageId(MessageContext context) Resturns the message id set in the incoming reply in a call back or polling case, this method should only be called when the response becomes available |
static String[] |
getIncomingRelatesToMessageId(Map<String,Object> context) Get the relates to message id set from the incoming reply |
static String[] |
getIncomingRelatesToMessageId(MessageContext context) Get the relates to message id set from the incoming reply |
static String |
getIncomingReplyToAddress(Map<String,Object> context) get the reply to value from the incoming request |
static String |
getIncomingReplyToAddress(MessageContext context) get the reply to value from the incoming request |
static String |
getIncomingToAddress(Map<String,Object> context) get the to value from the incoming request |
static String |
getOutgoingAction(Map<String,Object> context) Returns the action value of the outgoing message. |
static String |
getOutgoingAddressingNamespace(Map<String,Object> context) returns the addressing namespace used for the outoing message. |
static String |
getOutgoingMessageId(Map<String,Object> context) Returns the message id of the outgoing message. |
static String |
getOutgoingReplyToAddress(Map<String,Object> context) get the replyToAddress that has been set for an async operation. |
static oracle.j2ee.ws.common.addressing.api.EndpointReference |
getReplyTo(Map<String,Object> context) |
static oracle.j2ee.ws.common.addressing.api.ReferenceParameters |
getReplyToReferenceParameters(Map<String,Object> context) |
static AddressingInfo |
newAddressingInfoFromString(String s) create an instance of addressing info from a string |
static void |
setOutgoingAction(Map<String,Object> context, String action) set the action field of the outgoing addressing properties |
static void |
setOutgoingAddressingNamespace(Map<String,Object> context, String version) Set the outgoing addressing targetnamespace. |
static void |
setOutgoingFaultToAddress(Map<String,Object> context, String faultToAddress) Allows the client to programmatically set the FaultTo address for a fault |
static void |
setOutgoingFaultToEndpointReference(Map<String,Object> context, W3CEndpointReference epr) Allows the client to programmatically set the faultTo EndpointReference containing any ReferenceParameters |
static String |
setOutgoingMessageId(Map<String,Object> context) sets a new message id of the outgoing message by generating a new UUID |
static void |
setOutgoingMessageId(Map<String,Object> context, String msgID) sets the message id of the outgoing message |
static void |
setOutgoingRelatesToMessageId(Map<String,Object> context, String relatesToId) Sets the relatesTo message id in the outgoing request. |
static void |
setOutgoingReplyToAddress(Map<String,Object> context, String replyToAddress) Allows the client to programmatically set the ReplyTo address for an async operation. |
static void |
setOutgoingReplyToEndpointReference(Map<String,Object> context, W3CEndpointReference epr) Allows the client to programmatically set the replyTo EndpointReference containing any ReferenceParameters |
static void |
setOutgoingToAddress(Map<String,Object> context, String toAddress) Allows the client to programmatically set the To Address for an async operation. |
static void |
useDefaultReplyTo(Map<String,Object> context) Allows the client to specify that the next invocation should send the default replyto in the message so the callback will go back to the current server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddressingHelper()
Method Detail |
---|
public static AddressingInfo newAddressingInfoFromString(String s)
s
- must be the result of an instance of AddressingInfo.toString()public static String generateNewMessageId()
public static String getOutgoingMessageId(Map<String,Object> context)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String getOutgoingAction(Map<String,Object> context)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String getOutgoingReplyToAddress(Map<String,Object> context)
context
- a requestContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String getOutgoingAddressingNamespace(Map<String,Object> context)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextpublic static void setOutgoingMessageId(Map<String,Object> context, String msgID)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextmsgID
-public static String setOutgoingMessageId(Map<String,Object> context)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextpublic static void setOutgoingAction(Map<String,Object> context, String action)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextaction
-public static void setOutgoingReplyToAddress(Map<String,Object> context, String replyToAddress)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextreplyToAddress
- The value of the replyTo header to put in the outgoing message.public static void setOutgoingFaultToAddress(Map<String,Object> context, String faultToAddress)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextfaultToAddress
- The value of the FaultTo header to put in the outgoing message.public static void setOutgoingToAddress(Map<String,Object> context, String toAddress)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContexttoAddress
- The value of the To header to put in the outgoing message.public static void useDefaultReplyTo(Map<String,Object> context)
context
- Messagecontext from WebServiceContextpublic static void setOutgoingRelatesToMessageId(Map<String,Object> context, String relatesToId)
context
- MesssageContext from WebServiceContextrelatesToId
-public static void setOutgoingAddressingNamespace(Map<String,Object> context, String version)
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextpublic static void setOutgoingReplyToEndpointReference(Map<String,Object> context, W3CEndpointReference epr) throws SOAPException
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextepr
- an instance of W3CEndpiontReferenceSOAPException
public static void setOutgoingFaultToEndpointReference(Map<String,Object> context, W3CEndpointReference epr) throws SOAPException
context
- requestContext from the bindingProvider or Messagecontext from WebServiceContextepr
- an instance of W3CEndpiontReferenceSOAPException
public static void clearAllOutgoingAddressingProperties(Map<String,Object> context)
context
-public static String getIncomingMessageId(Map<String,Object> context)
context
- responseContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String getIncomingAction(Map<String,Object> context)
context
- responseContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String getIncomingAddressingNamespace(Map<String,Object> context)
context
- responseContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String[] getIncomingRelatesToMessageId(Map<String,Object> context)
context
- responseContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String getIncomingReplyToAddress(Map<String,Object> context)
context
- Messagecontext from WebServiceContextpublic static String getIncomingToAddress(Map<String,Object> context)
context
- Messagecontext from WebServiceContextpublic static String getIncomingFaultToAddress(Map<String,Object> context)
context
- Messagecontext from WebServiceContextpublic static AddressingInfo getAddressingInfo(WebServiceContext wsCxt)
wsCxt
-public static oracle.j2ee.ws.common.addressing.api.EndpointReference getReplyTo(Map<String,Object> context)
public static oracle.j2ee.ws.common.addressing.api.ReferenceParameters getReplyToReferenceParameters(Map<String,Object> context)
public static String getIncomingMessageId(MessageContext context)
context
- responseContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String getIncomingAction(MessageContext context)
context
- responseContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String[] getIncomingRelatesToMessageId(MessageContext context)
context
- responseContext from the bindingProvider or Messagecontext from WebServiceContextpublic static String getIncomingReplyToAddress(MessageContext context)
context
- Messagecontext from WebServiceContextpublic static String getIncomingFaultToAddress(MessageContext context)
context
- Messagecontext from WebServiceContext
|
Java API Reference for Oracle Infrastructure Web Services 11 Release 1 (11.1.1) E10654-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |