Apache CXF API

org.apache.cxf.jaxrs
Class JAXRSBindingFactory

java.lang.Object
  extended by org.apache.cxf.binding.AbstractBindingFactory
      extended by org.apache.cxf.jaxrs.JAXRSBindingFactory
All Implemented Interfaces:
BindingFactory

public class JAXRSBindingFactory
extends AbstractBindingFactory

The CXF BindingFactory implementation which is used to register CXF JAX-RS interceptors with the runtime.


Field Summary
static String JAXRS_BINDING_ID
           
 
Fields inherited from class org.apache.cxf.binding.AbstractBindingFactory
activationNamespaces, bus
 
Constructor Summary
JAXRSBindingFactory()
           
JAXRSBindingFactory(Bus b)
           
 
Method Summary
 void addListener(Destination d, Endpoint e)
          Set the destination's message observer which is created by using the endpoint to listen the incoming message
 Binding createBinding(BindingInfo bi)
          Create a Binding from the BindingInfo metadata.
 BindingInfo createBindingInfo(Service service, String namespace, Object obj)
          Creates a "default" BindingInfo object for the service.
 
Methods inherited from class org.apache.cxf.binding.AbstractBindingFactory
createBindingInfo, getActivationNamespaces, getBus, setActivationNamespaces, setBus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXRS_BINDING_ID

public static final String JAXRS_BINDING_ID
See Also:
Constant Field Values
Constructor Detail

JAXRSBindingFactory

public JAXRSBindingFactory()

JAXRSBindingFactory

public JAXRSBindingFactory(Bus b)
Method Detail

createBinding

public Binding createBinding(BindingInfo bi)
Description copied from interface: BindingFactory
Create a Binding from the BindingInfo metadata.

Returns:
the Binding object

createBindingInfo

public BindingInfo createBindingInfo(Service service,
                                     String namespace,
                                     Object obj)
Description copied from class: AbstractBindingFactory
Creates a "default" BindingInfo object for the service. Can return a subclass which can then process the extensors within the subclass. By default, just creates it for the first ServiceInfo in the service

Specified by:
createBindingInfo in interface BindingFactory
Overrides:
createBindingInfo in class AbstractBindingFactory
obj - - binding specific configuration object
Returns:
the BindingInfo object

addListener

public void addListener(Destination d,
                        Endpoint e)
Description copied from interface: BindingFactory
Set the destination's message observer which is created by using the endpoint to listen the incoming message

Specified by:
addListener in interface BindingFactory
Overrides:
addListener in class AbstractBindingFactory
Parameters:
d - the destination that will be set the MessageObserver
e - the endpoint to build up the MessageObserver

Apache CXF API

Apache CXF