org.ow2.petals.binding.soap.util
Class SUPropertiesHelper

java.lang.Object
  extended by org.ow2.petals.binding.soap.util.SUPropertiesHelper

public class SUPropertiesHelper
extends java.lang.Object

Helper for Service Unit properties values

Author:
chamerling - eBM Websourcing

Constructor Summary
protected SUPropertiesHelper()
          Creates a new instance if SUPropertiesHelper
 
Method Summary
protected static boolean checkPresent(java.lang.String parameterName, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Check if the given parameter is present
static java.lang.String getAddress(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Deprecated. use getWSATo(ConfigurationExtensions) instead
protected static boolean getBoolean(java.lang.String parameterName, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the boolean value of the parameter
protected static boolean getBoolean(java.lang.String parameterName, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions, boolean defaultValue)
           
static java.lang.String getHttpRedirection(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
           
static java.lang.String getKeystoreFile(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the keystore file location (HTTPS)
static java.lang.String getKeystorePassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the keystore password (HTTPS)
static java.lang.String getMode(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the mode.
static java.lang.String getServiceName(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the service name.
protected static java.lang.String getString(java.lang.String parameterName, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the parameter value or return null if not found
protected static java.lang.String getString(java.lang.String parameterName, java.lang.String defaultValue, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
           
static java.lang.String getTruststoreFile(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the truststore file location (HTTPS)
static java.lang.String getTruststorePassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the truststore password (HTTPS)
static java.lang.String getWSAFaultTo(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
           
static java.lang.String getWSAFrom(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
           
static java.lang.String getWSAReplyTo(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
           
static java.lang.String getWSATo(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the wsa-to.
static boolean isAxis1CompatibilityEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Is Axis 1 compatibility enabled
static boolean isHttpsTransportEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the flag enabling the HTTP transport layer
static boolean isHttpTransportEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the flag enabling the HTTP transport layer
static boolean isJmsTransportEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the flag enabling the JMS transport layer.
static boolean isPolicyEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          The policy is enabled if the policy path has been defined
static boolean isRESTMode(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          The mode is REST ?
static boolean isServiceMode(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Returns true if the mode is service compatible : SOAP, REST or JSON
static boolean isSOAPMode(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          The mode is SOAP ?
static boolean isWSAEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Return if the WSA-Addressing is enabled
static java.util.List<java.lang.String> retrieveHeaderList(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
           
static java.util.List<org.w3c.dom.DocumentFragment> retrieveHeaderToInject(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
           
static boolean retrieveInjectHeader(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          We inject the headers by default
static java.lang.String retrieveRESTAddNSPrefixOnRequest(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the prefix to be used
static java.lang.String retrieveRESTAddNSURIOnRequest(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get the URI which has to be added to the message payload
static java.util.List<java.lang.String> retrieveRESTRemovePrefixOnResponse(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Get all the prefix which has to be removed on REST response.
static long retrieveTimeout(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Retrieve the timeout extensions value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SUPropertiesHelper

protected SUPropertiesHelper()
Creates a new instance if SUPropertiesHelper

Method Detail

checkPresent

protected static final boolean checkPresent(java.lang.String parameterName,
                                            org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Check if the given parameter is present

Parameters:
parameterName -
extensions -
Returns:

getAddress

@Deprecated
public static java.lang.String getAddress(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Deprecated. use getWSATo(ConfigurationExtensions) instead

Get the address.

Returns:
the address

getBoolean

protected static final boolean getBoolean(java.lang.String parameterName,
                                          org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the boolean value of the parameter

Parameters:
parameterName -
extensions -
Returns:
the boolean value of the parameter according to the Boolean.parseBoolean method, true if the parameter has not been found.

getBoolean

protected static final boolean getBoolean(java.lang.String parameterName,
                                          org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
                                          boolean defaultValue)

getHttpRedirection

public static final java.lang.String getHttpRedirection(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)

getMode

public static java.lang.String getMode(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the mode. SOAP is default when not found.

Parameters:
extensions -
Returns:

getServiceName

public static java.lang.String getServiceName(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the service name. This name will be used to create the web service

Parameters:
extensions -
Returns:

getString

protected static final java.lang.String getString(java.lang.String parameterName,
                                                  org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the parameter value or return null if not found

Parameters:
parameterName -
extensions -
Returns:

getString

protected static final java.lang.String getString(java.lang.String parameterName,
                                                  java.lang.String defaultValue,
                                                  org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Parameters:
parameterName -
defaultValue -
extensions -
Returns:

getWSAFaultTo

public static java.lang.String getWSAFaultTo(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Parameters:
extensions -
Returns:

getWSAFrom

public static java.lang.String getWSAFrom(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Parameters:
extensions -
Returns:

getWSAReplyTo

public static java.lang.String getWSAReplyTo(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Parameters:
extensions -
Returns:

getWSATo

public static java.lang.String getWSATo(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the wsa-to.

Returns:
the wsa-to

isHttpsTransportEnabled

public static boolean isHttpsTransportEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the flag enabling the HTTP transport layer

Parameters:
extensions - the SU extensions
Returns:

isHttpTransportEnabled

public static boolean isHttpTransportEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the flag enabling the HTTP transport layer

Parameters:
extensions - the SU extensions
Returns:

isJmsTransportEnabled

public static boolean isJmsTransportEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the flag enabling the JMS transport layer.

Parameters:
extensions - the SU extensions
Returns:

isPolicyEnabled

public static boolean isPolicyEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
The policy is enabled if the policy path has been defined

Parameters:
extensions - the SU extensions
Returns:

isRESTMode

public static final boolean isRESTMode(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
The mode is REST ?

Parameters:
extensions - the SU extensions
Returns:

isServiceMode

public static final boolean isServiceMode(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Returns true if the mode is service compatible : SOAP, REST or JSON

Parameters:
extensions -
Returns:

isSOAPMode

public static final boolean isSOAPMode(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
The mode is SOAP ?

Parameters:
extensions - the SU extensions
Returns:

retrieveHeaderList

public static java.util.List<java.lang.String> retrieveHeaderList(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Parameters:
extensions - the SU extensions
Returns:

retrieveInjectHeader

public static boolean retrieveInjectHeader(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
We inject the headers by default

Parameters:
extensions - the SU extensions
Returns:

retrieveRESTAddNSPrefixOnRequest

public static java.lang.String retrieveRESTAddNSPrefixOnRequest(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the prefix to be used

Parameters:
extensions - the SU extensions
Returns:

retrieveRESTAddNSURIOnRequest

public static java.lang.String retrieveRESTAddNSURIOnRequest(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the URI which has to be added to the message payload

Parameters:
extensions - the SU extensions
Returns:

retrieveRESTRemovePrefixOnResponse

public static java.util.List<java.lang.String> retrieveRESTRemovePrefixOnResponse(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get all the prefix which has to be removed on REST response.

Parameters:
extensions - the SU extensions
Returns:
a list of prefixes to remove or null if the option has not been set

retrieveTimeout

public static final long retrieveTimeout(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Retrieve the timeout extensions value.

Parameters:
extensions - the SU extensions
Returns:

retrieveHeaderToInject

public static java.util.List<org.w3c.dom.DocumentFragment> retrieveHeaderToInject(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)

isAxis1CompatibilityEnabled

public static boolean isAxis1CompatibilityEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Is Axis 1 compatibility enabled

Parameters:
extensions - the SU extensions
Returns:
true if the Axis 1 compatibility is enabled, otherwise false

getKeystoreFile

public static java.lang.String getKeystoreFile(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the keystore file location (HTTPS)

Parameters:
extensions - the SU extensions
Returns:
the keystore file location

getKeystorePassword

public static java.lang.String getKeystorePassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the keystore password (HTTPS)

Parameters:
extensions - the SU extensions the SU extensions
Returns:
the keystore password

getTruststoreFile

public static java.lang.String getTruststoreFile(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the truststore file location (HTTPS)

Parameters:
extensions - the SU extensions
Returns:
the truststore file location

getTruststorePassword

public static java.lang.String getTruststorePassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the truststore password (HTTPS)

Parameters:
extensions - the SU extensions
Returns:
the truststore password

isWSAEnabled

public static boolean isWSAEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Return if the WSA-Addressing is enabled

Parameters:
extensions - the SU extensions
Returns:
true if the WSA-Addressing is enabled, otherwise false


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.