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

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

public class ComponentPropertiesHelper
extends Object

Author:
Christophe HAMERLING - eBM WebSourcing

Method Summary
static int getHttpAcceptors(Logger logger, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the number of acceptors of the Jetty server
static String getHttpHostName(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the host name
static int getHttpPort(Logger logger, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the HTTP port
static String getHttpsKeyPassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the key password (HTTPS)
static String getHttpsKeystoreFile(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the keystore file (HTTPS)
static String getHttpsKeystorePassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the keystore password (HTTPS)
static String getHttpsKeystoreType(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the keystore type (HTTPS)
static int getHttpsPort(Logger logger, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the HTTPS port
static String getHttpsTruststoreFile(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the truststore file (HTTPS)
static String getHttpsTruststorePassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the truststore password (HTTPS)
static String getHttpsTruststoreType(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the truststore type (HTTPS)
static int getHttpThreadMaxPoolSize(Logger logger, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the thread max pool size of the Jetty server
static int getHttpThreadMinPoolSize(Logger logger, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the thread min pool size of the Jetty server
static String getServicesContext(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the service context path segment
static String getServicesMapping(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Get the service mapping path segment
static boolean isHttpsClientAuthEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Define if HTTPS client authentication is enabled
static boolean isHttpsEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Define if HTTPS is enabled
static boolean isProvidingServicesList(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
          Return if the component have to provide the services list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHttpHostName

public static String getHttpHostName(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the host name

Parameters:
configurationExtensions - the component extensions
Returns:
the host name

getHttpPort

public static int getHttpPort(Logger logger,
                              org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the HTTP port

Parameters:
configurationExtensions - the component extensions
Returns:
the HTTP port

isProvidingServicesList

public static boolean isProvidingServicesList(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Return if the component have to provide the services list

Parameters:
configurationExtensions - the component extensions
Returns:
true if the component have to provide the services list, otherwise false

getServicesContext

public static String getServicesContext(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the service context path segment

Parameters:
configurationExtensions - the component extensions
Returns:
the service context path segment

getServicesMapping

public static String getServicesMapping(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the service mapping path segment

Parameters:
configurationExtensions - the component extensions
Returns:
the service mapping path segment

getHttpThreadMaxPoolSize

public static int getHttpThreadMaxPoolSize(Logger logger,
                                           org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the thread max pool size of the Jetty server

Parameters:
configurationExtensions - the component extensions
Returns:
the thread max pool size of the Jetty server

getHttpThreadMinPoolSize

public static int getHttpThreadMinPoolSize(Logger logger,
                                           org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the thread min pool size of the Jetty server

Parameters:
configurationExtensions - the component extensions
Returns:
the thread min pool size of the Jetty server

getHttpAcceptors

public static int getHttpAcceptors(Logger logger,
                                   org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the number of acceptors of the Jetty server

Parameters:
configurationExtensions - the component extensions
Returns:
the number of acceptors of the Jetty server

isHttpsEnabled

public static boolean isHttpsEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Define if HTTPS is enabled

Parameters:
configurationExtensions - the component extensions
Returns:
true if HTTPS is enabled, otherwise false

isHttpsClientAuthEnabled

public static boolean isHttpsClientAuthEnabled(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Define if HTTPS client authentication is enabled

Parameters:
configurationExtensions - the component extensions
Returns:
true if HTTPS client authentication is enabled, otherwise false

getHttpsPort

public static int getHttpsPort(Logger logger,
                               org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the HTTPS port

Parameters:
configurationExtensions - the component extensions
Returns:
the HTTPS port

getHttpsKeystoreType

public static String getHttpsKeystoreType(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the keystore type (HTTPS)

Parameters:
configurationExtensions - the component extensions
Returns:
the keystore type (HTTPS)

getHttpsKeystoreFile

public static String getHttpsKeystoreFile(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the keystore file (HTTPS)

Parameters:
configurationExtensions - the component extensions
Returns:
the keystore file (HTTPS)

getHttpsKeystorePassword

public static String getHttpsKeystorePassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the keystore password (HTTPS)

Parameters:
configurationExtensions - the component extensions
Returns:
the keystore password (HTTPS)

getHttpsKeyPassword

public static String getHttpsKeyPassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the key password (HTTPS)

Parameters:
configurationExtensions - the component extensions
Returns:
the key password (HTTPS)

getHttpsTruststoreType

public static String getHttpsTruststoreType(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the truststore type (HTTPS)

Parameters:
configurationExtensions - the component extensions
Returns:
the truststore type (HTTPS)

getHttpsTruststoreFile

public static String getHttpsTruststoreFile(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the truststore file (HTTPS)

Parameters:
configurationExtensions - the component extensions
Returns:
the truststore file (HTTPS)

getHttpsTruststorePassword

public static String getHttpsTruststorePassword(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions configurationExtensions)
Get the truststore password (HTTPS)

Parameters:
configurationExtensions - the component extensions
Returns:
the truststore password (HTTPS)


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