|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4corba.jbi.cxf.CXFUtils
public final class CXFUtils
Utility methods to manage CXF classes.
Constructor Summary | |
---|---|
CXFUtils()
|
Method Summary | |
---|---|
protected static org.apache.cxf.Bus |
createBus()
Creates the CXF "Bus". |
static Document |
getAbstractWSDLDocument(javax.wsdl.Definition def)
Gets the Abstract WSDL Documents starting from Definition |
static Document |
getAbstractWSDLDocument(org.apache.cxf.service.Service service)
Gets the Abstract WSDL Documents starting from Service |
static String |
getBindingStyle(org.apache.cxf.service.model.BindingOperationInfo bio)
Return the correct binding style for the binding, Document o RPC. |
static org.apache.cxf.Bus |
getBus()
The Bus can be null... |
static org.apache.cxf.endpoint.Endpoint |
getEndpoint(org.apache.cxf.service.Service service,
org.apache.cxf.service.model.EndpointInfo ei)
Gets the endpoint from service endpoint. |
static org.apache.cxf.service.model.EndpointInfo |
getEndpointInfo(org.apache.cxf.service.Service service)
Gets the EndpointInfo for the FIRST (should be the only...) Endpoint. |
static QName |
getInterfaceNameFromFirstEndpoint(org.apache.cxf.service.Service service)
Gets THE FIRST ENDPOINT interface name. |
static org.apache.cxf.jaxws.JaxWsClientFactoryBean |
getJaxWsClientFactoryBean()
Creates the CXF Service factory. |
static String |
getParameterStyle(org.apache.cxf.service.model.BindingOperationInfo bio)
Return the correct parameter style for the binding, Wrapped or Bare (notice that the WSDL is always Document/literal). |
static javax.wsdl.Definition |
getWSDLDefinition(org.apache.cxf.service.Service service)
Gets the WSDL definition. |
protected static Document |
getWSDLDocument(org.apache.cxf.service.Service service)
Gets the WSDL document. |
static void |
populateFaultInterceptors(org.apache.cxf.phase.PhaseInterceptorChain faultInterceptorChain,
String parameterStyle,
String bindingStyle)
This method creates the CXF OUT Interceptors chain and process the message. |
static void |
populateInInterceptorsForConsumer(org.apache.cxf.phase.PhaseInterceptorChain inInterceptorChain,
String parameterStyle,
String bindingStyle,
boolean isFromIDL)
This method creates the CXF OUT Interceptors chain and process the message. |
static void |
populateInInterceptorsForProvider(org.apache.cxf.phase.PhaseInterceptorChain inInterceptorChain,
String parameterStyle,
String bindingStyle)
This method creates the CXF Interceptors chain and process the message. |
static void |
populateOutInterceptors(org.apache.cxf.phase.PhaseInterceptorChain outInterceptorChain,
String parameterStyle,
String bindingStyle,
boolean isProviderOrConsumerFromIDL)
This method creates the CXF OUT Interceptors chain and process the message. |
static org.apache.cxf.Bus |
setupBus()
|
static void |
writeDefinitionOnOutputStream(org.apache.cxf.service.Service service,
OutputStream out)
Writes out the service definition on the output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CXFUtils()
Method Detail |
---|
public static org.apache.cxf.Bus setupBus() throws org.apache.cxf.BusException
org.apache.cxf.BusException
public static org.apache.cxf.Bus getBus()
org.apache.cxf.BusException
protected static org.apache.cxf.Bus createBus() throws org.apache.cxf.BusException
org.apache.cxf.BusException
public static org.apache.cxf.jaxws.JaxWsClientFactoryBean getJaxWsClientFactoryBean() throws Jbi4CorbaException
Jbi4CorbaException
protected static Document getWSDLDocument(org.apache.cxf.service.Service service) throws javax.wsdl.WSDLException
service
-
javax.wsdl.WSDLException
public static javax.wsdl.Definition getWSDLDefinition(org.apache.cxf.service.Service service) throws javax.wsdl.WSDLException
service
-
javax.wsdl.WSDLException
public static Document getAbstractWSDLDocument(javax.wsdl.Definition def) throws javax.wsdl.WSDLException
def
-
javax.wsdl.WSDLException
public static Document getAbstractWSDLDocument(org.apache.cxf.service.Service service) throws javax.wsdl.WSDLException
service
-
javax.wsdl.WSDLException
public static void writeDefinitionOnOutputStream(org.apache.cxf.service.Service service, OutputStream out) throws javax.wsdl.WSDLException
out
-
javax.wsdl.WSDLException
public static QName getInterfaceNameFromFirstEndpoint(org.apache.cxf.service.Service service)
service
-
public static org.apache.cxf.service.model.EndpointInfo getEndpointInfo(org.apache.cxf.service.Service service) throws IOException
service
-
IOException
public static org.apache.cxf.endpoint.Endpoint getEndpoint(org.apache.cxf.service.Service service, org.apache.cxf.service.model.EndpointInfo ei)
public static String getBindingStyle(org.apache.cxf.service.model.BindingOperationInfo bio)
bio
-
SoapBindingConstants.PARAMETER_STYLE_WRAPPED
or SoapBindingConstants.PARAMETER_STYLE_BARE
public static void populateOutInterceptors(org.apache.cxf.phase.PhaseInterceptorChain outInterceptorChain, String parameterStyle, String bindingStyle, boolean isProviderOrConsumerFromIDL)
parameterStyle
- bindingStyle
- isProviderOrConsumerFromIDL
- public static void populateFaultInterceptors(org.apache.cxf.phase.PhaseInterceptorChain faultInterceptorChain, String parameterStyle, String bindingStyle)
parameterStyle
- message
- public static void populateInInterceptorsForConsumer(org.apache.cxf.phase.PhaseInterceptorChain inInterceptorChain, String parameterStyle, String bindingStyle, boolean isFromIDL)
parameterStyle
- bindingStyle
- message
- public static void populateInInterceptorsForProvider(org.apache.cxf.phase.PhaseInterceptorChain inInterceptorChain, String parameterStyle, String bindingStyle)
parameterStyle
- message
- public static String getParameterStyle(org.apache.cxf.service.model.BindingOperationInfo bio)
bio
-
SoapBindingConstants.PARAMETER_STYLE_WRAPPED
or SoapBindingConstants.PARAMETER_STYLE_BARE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |