Package org.apache.cxf.jaxrs
Class JAXRSBindingFactory
- java.lang.Object
-
- org.apache.cxf.binding.AbstractBindingFactory
-
- 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
Fields Modifier and Type Field Description static StringJAXRS_BINDING_ID-
Fields inherited from class org.apache.cxf.binding.AbstractBindingFactory
activationNamespaces, bus
-
-
Constructor Summary
Constructors Constructor Description JAXRSBindingFactory()JAXRSBindingFactory(Bus b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(Destination d, Endpoint e)Set the destination's message observer which is created by using the endpoint to listen the incoming messageBindingcreateBinding(BindingInfo bi)Create a Binding from the BindingInfo metadata.BindingInfocreateBindingInfo(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
-
-
-
-
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:BindingFactoryCreate a Binding from the BindingInfo metadata.- Returns:
- the Binding object
-
createBindingInfo
public BindingInfo createBindingInfo(Service service, String namespace, Object obj)
Description copied from class:AbstractBindingFactoryCreates 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:
createBindingInfoin interfaceBindingFactory- Overrides:
createBindingInfoin classAbstractBindingFactoryobj- - binding specific configuration object- Returns:
- the BindingInfo object
-
addListener
public void addListener(Destination d, Endpoint e)
Description copied from interface:BindingFactorySet the destination's message observer which is created by using the endpoint to listen the incoming message- Specified by:
addListenerin interfaceBindingFactory- Overrides:
addListenerin classAbstractBindingFactory- Parameters:
d- the destination that will be set the MessageObservere- the endpoint to build up the MessageObserver
-
-