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
 
Fields inherited from class org.ow2.orchestra.ws.WSDeployer
bpelProcess, DEFAULT_SOAP_BINDING_STYLE, expectedAddressPrefix, orchestraProperties, processUUID, SOAP_HTTP_TRANSPORT_URI, URI_WSDL11_SOAP11, URI_WSDL11_SOAP12
 
Constructor Summary
CxfDeployer(BpelProcess bpelProcess, CxfPublisher cxfPublisher)
          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.
protected  boolean isAddressSupported(java.lang.String address)
           
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, getLocksAndOneWays, getProcessUUID, getSoapBindingFromBinding, getSoapBodyFromElement, getSoapFaultFromElement, getSoapOperationFromBindingOperation, getSOAPStyle, printProblems, setProcessUUID, undeploy, verifySoapBody, verifySoapFault, verifyThereIsOnlyOnePart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CxfDeployer

public CxfDeployer(BpelProcess bpelProcess,
                   CxfPublisher cxfPublisher)
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.

isAddressSupported

protected boolean isAddressSupported(java.lang.String address)
Overrides:
isAddressSupported in class WSDeployer

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.

checkWSEngineIsAvailable

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.