org.glassfish.openesb.pojose.api.res
Interface Context


public interface Context

Context provides methods to Provider instance to discover ServiceEndpoints and create MessageExchangeFactory objects.
Instance is injected by Service Engine into member variable annotated using Resource.

Author:
Girish Patil, Sreeni Genipudi
See Also:
Resource

Method Summary
 javax.jbi.messaging.MessageExchangeFactory createExchangeFactory()
          Returns MessageExchangeFactory Delegates call to DeliveryChannel.
 javax.jbi.messaging.MessageExchangeFactory createExchangeFactory(javax.xml.namespace.QName interfaceName)
          Returns MessageExchangeFactory for a given interface.
 javax.jbi.messaging.MessageExchangeFactory createExchangeFactory(javax.jbi.servicedesc.ServiceEndpoint endpoint)
          Returns MessageExchangeFactory for given ServiceEndpoint Delegates call to DeliveryChannel.
 javax.jbi.messaging.MessageExchangeFactory createExchangeFactoryForService(javax.xml.namespace.QName serviceName)
          Returns MessageExchangeFactory for given service name.
 FaultMessage createFaultMessage(org.w3c.dom.Node payload, javax.xml.namespace.QName faultMsgType)
          Utility method to construct FaultMessage.
 FaultMessage createFaultMessage(javax.xml.transform.Source payload, javax.xml.namespace.QName faultMsgType)
          Utility method to construct FaultMessage.
 FaultMessage createFaultMessage(java.lang.String payload, javax.xml.namespace.QName faultMsgType)
          Utility method to construct FaultMessage.
 Consumer getConsumer()
          Gets the new Consumer instance.
 Consumer getConsumer(javax.jbi.servicedesc.ServiceEndpoint se, javax.xml.namespace.QName oper, javax.xml.namespace.QName inpt)
          Gets the new Consumer instance.
 javax.jbi.servicedesc.ServiceEndpoint getEndpoint(javax.xml.namespace.QName serviceName, java.lang.String endpoint)
          Get the service endpoint for the named activated endpoint, if any.
Delegates call to ComponentContext.
 org.w3c.dom.Document getEndpointDescriptor(javax.jbi.servicedesc.ServiceEndpoint endpoint)
          Retrieve the service description metadata for the specified endpoint.
Delegates call to ComponentContext.
 javax.jbi.servicedesc.ServiceEndpoint[] getEndpoints(javax.xml.namespace.QName interfaceName)
          Queries the NMR for active endpoints that implement the given interface.
Delegates call to ComponentContext.
 javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForService(javax.xml.namespace.QName serviceName)
          Queries the NMR for active endpoints belonging to the given service.
Delegates call to ComponentContext.
 javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpoints(javax.xml.namespace.QName interfaceName)
          Queries the NMR for external endpoints that implement the given interface name.
Delegates call to ComponentContext.
 javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
          Queries the NMR for external endpoints that are part of the given service.
 javax.jbi.messaging.MessageExchange getMessageExchange()
          Returns MessageExchange associated with this POJO's Provisioning Service.
 javax.naming.InitialContext getNamingContext()
          Returns intsnace of InitialContext or null.
 javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
          Resolve the given endpoint reference into a service endpoint.
 

Method Detail

getEndpoint

javax.jbi.servicedesc.ServiceEndpoint getEndpoint(javax.xml.namespace.QName serviceName,
                                                  java.lang.String endpoint)
Get the service endpoint for the named activated endpoint, if any.
Delegates call to ComponentContext.

Returns:
ServiceEndpoint
See Also:
ComponentContext, JBI 1.0 API

getEndpointDescriptor

org.w3c.dom.Document getEndpointDescriptor(javax.jbi.servicedesc.ServiceEndpoint endpoint)
                                           throws javax.jbi.JBIException
Retrieve the service description metadata for the specified endpoint.
Delegates call to ComponentContext.

Returns:
Document
Throws:
javax.jbi.JBIException
See Also:
ComponentContext, JBI 1.0 API

getEndpoints

javax.jbi.servicedesc.ServiceEndpoint[] getEndpoints(javax.xml.namespace.QName interfaceName)
Queries the NMR for active endpoints that implement the given interface.
Delegates call to ComponentContext.

Returns:
ServiceEndpoint
See Also:
ComponentContext, JBI 1.0 API

getEndpointsForService

javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForService(javax.xml.namespace.QName serviceName)
Queries the NMR for active endpoints belonging to the given service.
Delegates call to ComponentContext.

Returns:
ServiceEndpoint
See Also:
ComponentContext, JBI 1.0 API

getExternalEndpoints

javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpoints(javax.xml.namespace.QName interfaceName)
Queries the NMR for external endpoints that implement the given interface name.
Delegates call to ComponentContext.

Returns:
ServiceEndpoint
See Also:
ComponentContext, JBI 1.0 API

getExternalEndpointsForService

javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
Queries the NMR for external endpoints that are part of the given service. Delegates call to ComponentContext.

Returns:
ServiceEndpoint
See Also:
ComponentContext, JBI 1.0 API

resolveEndpointReference

javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
Resolve the given endpoint reference into a service endpoint. Delegates call to ComponentContext.

Returns:
ServiceEndpoint
See Also:
ComponentContext, JBI 1.0 API

createExchangeFactory

javax.jbi.messaging.MessageExchangeFactory createExchangeFactory()
Returns MessageExchangeFactory Delegates call to DeliveryChannel.

Returns:
MessageExchangeFactory
See Also:
DeliveryChannel, JBI 1.0 API

createExchangeFactory

javax.jbi.messaging.MessageExchangeFactory createExchangeFactory(javax.xml.namespace.QName interfaceName)
Returns MessageExchangeFactory for a given interface. Delegates call to DeliveryChannel.

Returns:
MessageExchangeFactory
See Also:
DeliveryChannel, JBI 1.0 API

createExchangeFactory

javax.jbi.messaging.MessageExchangeFactory createExchangeFactory(javax.jbi.servicedesc.ServiceEndpoint endpoint)
Returns MessageExchangeFactory for given ServiceEndpoint Delegates call to DeliveryChannel.

Returns:
MessageExchangeFactory
See Also:
DeliveryChannel, JBI 1.0 API

createExchangeFactoryForService

javax.jbi.messaging.MessageExchangeFactory createExchangeFactoryForService(javax.xml.namespace.QName serviceName)
Returns MessageExchangeFactory for given service name. Delegates call to DeliveryChannel.

Returns:
MessageExchangeFactory
See Also:
DeliveryChannel, JBI 1.0 API

getMessageExchange

javax.jbi.messaging.MessageExchange getMessageExchange()
Returns MessageExchange associated with this POJO's Provisioning Service. Delegates call to DeliveryChannel.

Returns:
MessageExchangeFactory
See Also:
DeliveryChannel, JBI 1.0 API

getNamingContext

javax.naming.InitialContext getNamingContext()
Returns intsnace of InitialContext or null. Delegates call to ComponentContext.

Returns:
InitialContext
See Also:
JBI 1.0 API

getConsumer

Consumer getConsumer(javax.jbi.servicedesc.ServiceEndpoint se,
                     javax.xml.namespace.QName oper,
                     javax.xml.namespace.QName inpt)
Gets the new Consumer instance.

Parameters:
se - ServiceEndpoint
oper - QName of the operation
inpt - QName of the input
Returns:
Consumer

getConsumer

Consumer getConsumer()
Gets the new Consumer instance.

Returns:
Consumer

createFaultMessage

FaultMessage createFaultMessage(java.lang.String payload,
                                javax.xml.namespace.QName faultMsgType)
Utility method to construct FaultMessage. This utility method always tries to wrap passed payload with JBI WSDL 1.1 wrapper elements.

Parameters:
payload -
faultMsgType -
Returns:
FaultMessage

createFaultMessage

FaultMessage createFaultMessage(org.w3c.dom.Node payload,
                                javax.xml.namespace.QName faultMsgType)
Utility method to construct FaultMessage. This utility method always tries to wrap passed payload with JBI WSDL 1.1 wrapper elements.

Parameters:
payload -
faultMsgType -
Returns:
FaultMessage

createFaultMessage

FaultMessage createFaultMessage(javax.xml.transform.Source payload,
                                javax.xml.namespace.QName faultMsgType)
Utility method to construct FaultMessage. This utility method always tries to wrap passed payload with JBI WSDL 1.1 wrapper elements.

Parameters:
payload -
faultMsgType -
Returns:
FaultMessage


Copyright © 2006-2009. All Rights Reserved.