org.ow2.orchestra.cxf
Class CxfDeployer

java.lang.Object
  extended by org.ow2.orchestra.ws.WSDeployer
      extended by org.ow2.orchestra.cxf.CxfDeployer

public class CxfDeployer
extends WSDeployer

CXF engine WS deployer.

Author:
Guillaume Porcher

Field Summary
static org.apache.cxf.Bus CXF_BUS
           
static java.lang.String WSDL_FILE_NAME
           
 
Fields inherited from class org.ow2.orchestra.ws.WSDeployer
DEFAULT_SOAP_BINDING_STYLE, expectedAddressPrefix, orchestraProperties, processUUID, SOAP_HTTP_TRANSPORT_URI, URI_WSDL11_SOAP11, URI_WSDL11_SOAP12
 
Constructor Summary
CxfDeployer(BpelProcess bpelProcess)
          Default constructor.
 
Method Summary
protected  java.lang.String checkOperationStyle(java.lang.String operationStyle)
          return null if operation style is supported by Axis engine.
protected  java.lang.String checkOperationType(javax.wsdl.OperationType operationType)
          return null if operation type is supported by Axis engine.
protected  java.lang.String checkSoapBody(javax.wsdl.extensions.ExtensibilityElement soapBody)
          return null if soapBody attributes are supported by Axis engine.
protected  java.lang.String checkSoapFault(javax.wsdl.extensions.ExtensibilityElement soapFault)
           
protected  java.lang.String checkSoapVersion(javax.wsdl.extensions.ExtensibilityElement soapBinding)
          return null if soapVersion is supported by Axis engine.
protected  java.lang.String checkTransport(javax.wsdl.extensions.ExtensibilityElement soapBinding)
          return null if transport is supported by Axis engine.
protected  java.lang.String checkUse(javax.wsdl.extensions.ExtensibilityElement element)
          return null if use is supported by Axis engine.
protected  void checkWSEngineIsAvailable()
           
protected  void deployServices(java.util.List<javax.wsdl.Service> services)
          This method will deploy the specified WS Service on the choosen ws engine.
static java.lang.String getDirectoryFromPackage(java.lang.String packag)
          Returns the directory structure corresponding to the given package.
static java.lang.String getPackageFromNamespace(java.lang.String ns)
          Returns the java package that maps to the given namespace.
protected  void undeployServices(java.util.List<javax.wsdl.Service> services)
          This method will undeploy the specified WS Service from the choosen ws engine.
 
Methods inherited from class org.ow2.orchestra.ws.WSDeployer
addProblem, addProblem, addProblem, addProblem, checkBinding, checkOperation, checkSupport, deploy, getAddressFromPort, getFromList, getProcessUUID, getSoapBindingFromBinding, getSoapBodyFromElement, getSoapFaultFromElement, getSoapOperationFromBindingOperation, getSOAPStyle, printProblems, setProcessQName, undeploy, verifySoapBody, verifySoapFault, verifyThereIsOnlyOnePart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CXF_BUS

public static final org.apache.cxf.Bus CXF_BUS

WSDL_FILE_NAME

public static final java.lang.String WSDL_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

CxfDeployer

public CxfDeployer(BpelProcess bpelProcess)
Default constructor.

Parameters:
wsId - - id of the WS : in our case, processName
wsdlUrl - - url of the wsdl file to deploy.
orchestraDirectory - - Absolute path to the orchestra directory.
Method Detail

checkOperationStyle

protected java.lang.String checkOperationStyle(java.lang.String operationStyle)
return null if operation style is supported by Axis engine. Else, returns a message explaining the problem.

Specified by:
checkOperationStyle in class WSDeployer
Parameters:
operationStyle - - operationStyle to check
Returns:
null if operation style is supported by Axis engine. Else, returns a message explaining the problem.

checkOperationType

protected java.lang.String checkOperationType(javax.wsdl.OperationType operationType)
return null if operation type is supported by Axis engine. Else, returns a message explaining the problem.

Specified by:
checkOperationType in class WSDeployer
Parameters:
operationType - - operationType to check
Returns:
null if operation type is supported by Axis engine. Else, returns a message explaining the problem.

checkSoapVersion

protected java.lang.String checkSoapVersion(javax.wsdl.extensions.ExtensibilityElement soapBinding)
return null if soapVersion is supported by Axis engine. Else, returns a message explaining the problem.

Specified by:
checkSoapVersion in class WSDeployer
Parameters:
soapBinding - - soapBinding to check
Returns:
null if soapVersion is supported by Axis engine. Else, returns a message explaining the problem.

checkTransport

protected java.lang.String checkTransport(javax.wsdl.extensions.ExtensibilityElement soapBinding)
return null if transport is supported by Axis engine. Else, returns a message explaining the problem.

Specified by:
checkTransport in class WSDeployer
Parameters:
soapBinding - - soapBinding to check
Returns:
null if transport is supported by Axis engine. Else, returns a message explaining the problem.

checkUse

protected java.lang.String checkUse(javax.wsdl.extensions.ExtensibilityElement element)
return null if use is supported by Axis engine. Else, returns a message explaining the problem.

Specified by:
checkUse in class WSDeployer
Parameters:
soapBody - - soapBody to check
Returns:
null if use is supported by Axis engine. Else, returns a message explaining the problem.

checkSoapBody

protected java.lang.String checkSoapBody(javax.wsdl.extensions.ExtensibilityElement soapBody)
return null if soapBody attributes are supported by Axis engine. Else, returns a message explaining the problem.

Specified by:
checkSoapBody in class WSDeployer
Parameters:
soapBody - - soapBody to check
Returns:
null if soapBody attributes are supported supported by Axis engine. Else, returns a message explaining the problem.

checkSoapFault

protected java.lang.String checkSoapFault(javax.wsdl.extensions.ExtensibilityElement soapFault)
Specified by:
checkSoapFault in class WSDeployer

deployServices

protected void deployServices(java.util.List<javax.wsdl.Service> services)
This method will deploy the specified WS Service on the choosen ws engine. This method must be overriden by each ws engine Deployer.

Specified by:
deployServices in class WSDeployer
Parameters:
def - - Definition object that represents a WS Service to deploy.

undeployServices

protected void undeployServices(java.util.List<javax.wsdl.Service> services)
This method will undeploy the specified WS Service from the choosen ws engine. This method must be overriden by each ws engine Deployer.

Specified by:
undeployServices in class WSDeployer
Parameters:
def - - Definition object that represents a WS Service to undeploy.

getPackageFromNamespace

public static java.lang.String getPackageFromNamespace(java.lang.String ns)
Returns the java package that maps to the given namespace.

Parameters:
ns - - ns
Returns:
the java package that maps to the given namespace.

getDirectoryFromPackage

public static java.lang.String getDirectoryFromPackage(java.lang.String packag)
Returns the directory structure corresponding to the given package.

Parameters:
packag - - packag
Returns:
the directory structure corresponding to the given package.

checkWSEngineIsAvailable

protected void checkWSEngineIsAvailable()
Specified by:
checkWSEngineIsAvailable in class WSDeployer


Copyright © 2009 OW2 Consortium. All Rights Reserved.