org.ow2.orchestra.axis
Class AxisDeployer

java.lang.Object
  extended by org.ow2.orchestra.ws.WSDeployer
      extended by org.ow2.orchestra.axis.AxisDeployer

public class AxisDeployer
extends WSDeployer

Axis engine WS deployer.


Field Summary
static java.lang.String ANT_ENV
          utility variable to define ant environment.
static java.lang.String JDK_VERSION
          jdkVersion used to compile generated java files.
static java.lang.String MESSAGE_STYLE
          wsdd style attribute message value.
static java.lang.String NEW_WSDD_SUFFIX
          utility var to rename wsdd file with a suffix.
static java.lang.String SCOPE
          scope of the wsdd generated.
static java.lang.String WSDD_DEPLOY_FILE_NAME
          deploy.wsdd.
static java.lang.String WSDD_NS
          axis deployment namespace.
static java.lang.String WSDD_SERVICE
          wsdd root element name.
static java.lang.String WSDD_SERVICE_PROVIDER_ATTR
          wsdd root element provider attribute name.
static java.lang.String WSDD_SERVICE_STYLE_ATTR
          wsdd root element style attribute name.
static java.lang.String WSDD_UNDEPLOY_FILE_NAME
          undeploy.wsdd.
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
AxisDeployer(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()
          Check if WS engine is available.
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

WSDD_DEPLOY_FILE_NAME

public static final java.lang.String WSDD_DEPLOY_FILE_NAME
deploy.wsdd.

See Also:
Constant Field Values

WSDL_FILE_NAME

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

WSDD_UNDEPLOY_FILE_NAME

public static final java.lang.String WSDD_UNDEPLOY_FILE_NAME
undeploy.wsdd.

See Also:
Constant Field Values

WSDD_NS

public static final java.lang.String WSDD_NS
axis deployment namespace.

See Also:
Constant Field Values

WSDD_SERVICE

public static final java.lang.String WSDD_SERVICE
wsdd root element name.

See Also:
Constant Field Values

WSDD_SERVICE_STYLE_ATTR

public static final java.lang.String WSDD_SERVICE_STYLE_ATTR
wsdd root element style attribute name.

See Also:
Constant Field Values

WSDD_SERVICE_PROVIDER_ATTR

public static final java.lang.String WSDD_SERVICE_PROVIDER_ATTR
wsdd root element provider attribute name.

See Also:
Constant Field Values

MESSAGE_STYLE

public static final java.lang.String MESSAGE_STYLE
wsdd style attribute message value.

See Also:
Constant Field Values

NEW_WSDD_SUFFIX

public static final java.lang.String NEW_WSDD_SUFFIX
utility var to rename wsdd file with a suffix.

See Also:
Constant Field Values

SCOPE

public static final java.lang.String SCOPE
scope of the wsdd generated.

See Also:
Constant Field Values

JDK_VERSION

public static final java.lang.String JDK_VERSION
jdkVersion used to compile generated java files.

See Also:
Constant Field Values

ANT_ENV

public static final java.lang.String ANT_ENV
utility variable to define ant environment.

See Also:
Constant Field Values
Constructor Detail

AxisDeployer

public AxisDeployer(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

checkWSEngineIsAvailable

protected void checkWSEngineIsAvailable()
Check if WS engine is available. Else throw an exception.

Specified by:
checkWSEngineIsAvailable 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.


Copyright © 2009 OW2 Consortium. All Rights Reserved.