org.ow2.petals.binding.soap
Class SoapBootstrap

java.lang.Object
  extended by org.ow2.petals.component.framework.JBIBootstrap
      extended by org.ow2.petals.component.framework.DefaultBootstrap
          extended by org.ow2.petals.binding.soap.SoapBootstrap
All Implemented Interfaces:
javax.jbi.component.Bootstrap

public class SoapBootstrap
extends org.ow2.petals.component.framework.DefaultBootstrap

The bootstrap class. Copy all the configuration files in the good directories.

Author:
Christophe HAMERLING - eBMWebSourcing

Field Summary
protected  SoapBootstrapOperations bootstrapOperations
           
static java.util.logging.Logger logger
           
 
Fields inherited from class org.ow2.petals.component.framework.DefaultBootstrap
mbeanName
 
Fields inherited from class org.ow2.petals.component.framework.JBIBootstrap
installContext
 
Constructor Summary
SoapBootstrap()
           
 
Method Summary
 java.lang.String addModule(java.lang.String url)
          Add a module to the Axis2 engine.
protected  void copyConfigurationFiles()
          Copy the needed configuration files to the Axis2 directories.
protected  void createWorkDirectories()
          Create the directories that will be used by axis
protected  void doInit()
           
protected  java.util.List<java.lang.String> getAttributeList()
           
 int getHttpAcceptors()
          Get the number of acceptors
 java.lang.String getHttpHostName()
          Get the HTTP host name
 int getHttpPort()
          Get the HTTP port
 java.lang.String getHttpServicesContext()
          Get the HTTP service context
 boolean getHttpServicesList()
          Return if the service list is available
 java.lang.String getHttpServicesMapping()
          Get the HTTP service mapping
 java.lang.String getHttpsKeyPassword()
          Get the key password
 java.lang.String getHttpsKeystoreFile()
          Get the keystore file path
 java.lang.String getHttpsKeystorePassword()
          Get the keystore password
 java.lang.String getHttpsKeystoreType()
          Get the keystore type (JKS / PKCS12)
 int getHttpsPort()
          Get HTTPS port.
 java.lang.String getHttpsTruststoreFile()
          Get the truststore file path
 java.lang.String getHttpsTruststorePassword()
          Get the truststore password
 java.lang.String getHttpsTruststoreType()
          Get the truststore type (JKS / PKCS12)
 int getHttpThreadPoolSizeMax()
          Get the HTTP thread pool maximum size
 int getHttpThreadPoolSizeMin()
          Get the HTTP thread pool minimum size
 java.lang.String getJavaNamingFactoryInitial()
          Get the Java initial factory naming
 java.lang.String getJavaNamingProviderURL()
          Get the Java URL provider naming
 java.lang.String getJMSConnectionFactoryJNDIName()
          Get the JMS connection factory JNDI name
protected  java.util.List<java.lang.String> getMethodList()
           
 boolean isHttpsEnabled()
          Return if HTTPS is enabled
 void setHttpAcceptors(int httpAcceptors)
          Set HTTP acceptor number
 void setHttpHostName(java.lang.String httpHostName)
          Set the HTTP host name
 void setHttpPort(int httpPort)
          Set the HTTP port
 void setHttpsEnabled(boolean isHttpsEnabled)
          Define if HTTPS is enabled
 void setHttpServicesContext(java.lang.String httpServicesContext)
          Set HTTP service context
 void setHttpServicesList(boolean httpServicesList)
          Define if the service list is available
 void setHttpServicesMapping(java.lang.String httpServicesMapping)
          Set the HTTP service mapping
 void setHttpsKeyPassword(java.lang.String httpsKeytoreKeyPassword)
          Set the key password
 void setHttpsKeystoreFile(java.lang.String httpsKeytoreFile)
          Set the keystore absolute file path
 void setHttpsKeystorePassword(java.lang.String httpsKeytorePassword)
          Set the keystore password
 void setHttpsKeystoreType(java.lang.String httpsKeystoreType)
          Set the type of the keystore (JKS / PKCS12)
 void setHttpsPort(int httpsPort)
          Set the HTTPS port
 void setHttpsTruststoreFile(java.lang.String httpsTruststoreFile)
          Set the truststore absolute file path
 void setHttpsTruststorePassword(java.lang.String httpsTruststorePassword)
          Set the truststore password
 void setHttpsTruststoreType(java.lang.String httpsTruststoreType)
          Set the type of the truststore (JKS / PKCS12)
 void setHttpThreadPoolSizeMax(int httpThreadPoolSizeMax)
          Set the HTTP thread pool maximum size
 void setHttpThreadPoolSizeMin(int httpThreadPoolSizeMin)
          Set the HTTP thread pool minimum size
 void setJavaNamingFactoryInitial(java.lang.String javaNamingFactoryInitial)
          Set the Java initial factory naming
 void setJavaNamingProviderURL(java.lang.String javaNamingProviderURL)
          Set the Java URL provider naming
 void setJMSConnectionFactoryJNDIName(java.lang.String jmsConnectionFactoryJNDIName)
          Set the JMS connection factory JNDI name
 
Methods inherited from class org.ow2.petals.component.framework.DefaultBootstrap
cleanUp, getExtensionMBeanName, onInstall
 
Methods inherited from class org.ow2.petals.component.framework.JBIBootstrap
getInstallContext, getJbiComponentConfiguration, getLogger, init, onUninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bootstrapOperations

protected SoapBootstrapOperations bootstrapOperations

logger

public static final java.util.logging.Logger logger
Constructor Detail

SoapBootstrap

public SoapBootstrap()
Method Detail

addModule

public java.lang.String addModule(java.lang.String url)
                           throws java.lang.Exception
Add a module to the Axis2 engine. This method is used by the configuration MBean.

Parameters:
url -
Returns:
Throws:
javax.jbi.JBIException
java.lang.Exception

copyConfigurationFiles

protected void copyConfigurationFiles()
                               throws javax.jbi.JBIException
Copy the needed configuration files to the Axis2 directories. Do not copy them if the files are already present (the install phase has already been done and we are now in the uninstall phase).

Throws:
javax.jbi.JBIException

createWorkDirectories

protected void createWorkDirectories()
Create the directories that will be used by axis

Parameters:
installPath -

doInit

protected void doInit()
               throws javax.jbi.JBIException
Overrides:
doInit in class org.ow2.petals.component.framework.DefaultBootstrap
Throws:
javax.jbi.JBIException

getAttributeList

protected java.util.List<java.lang.String> getAttributeList()
Overrides:
getAttributeList in class org.ow2.petals.component.framework.DefaultBootstrap

getHttpAcceptors

public int getHttpAcceptors()
Get the number of acceptors

Returns:
the number of acceptors

getHttpHostName

public java.lang.String getHttpHostName()
Get the HTTP host name

Returns:
the HTTP host name

getHttpPort

public int getHttpPort()
Get the HTTP port

Returns:
the HTTP port

getHttpServicesContext

public java.lang.String getHttpServicesContext()
Get the HTTP service context

Returns:
the HTTP service context

getHttpServicesList

public boolean getHttpServicesList()
Return if the service list is available

Returns:
true if the service list is available, otherwise false

getHttpServicesMapping

public java.lang.String getHttpServicesMapping()
Get the HTTP service mapping

Returns:
the HTTP service mapping

getHttpThreadPoolSizeMax

public int getHttpThreadPoolSizeMax()
Get the HTTP thread pool maximum size

Returns:
the HTTP thread pool maximum size

getHttpThreadPoolSizeMin

public int getHttpThreadPoolSizeMin()
Get the HTTP thread pool minimum size

Returns:
the HTTP thread pool minimum size

getJavaNamingFactoryInitial

public java.lang.String getJavaNamingFactoryInitial()
Get the Java initial factory naming

Returns:
the Java initial factory naming

getJavaNamingProviderURL

public java.lang.String getJavaNamingProviderURL()
Get the Java URL provider naming

Returns:
the Java URL provider naming

getJMSConnectionFactoryJNDIName

public java.lang.String getJMSConnectionFactoryJNDIName()
Get the JMS connection factory JNDI name

Returns:
the JMS connection factory JNDI name

isHttpsEnabled

public boolean isHttpsEnabled()
Return if HTTPS is enabled

Returns:
true if HTTPS is enabled, otherwise false

getHttpsKeystoreType

public java.lang.String getHttpsKeystoreType()
Get the keystore type (JKS / PKCS12)

Returns:
the keystore type (JKS / PKCS12)

getHttpsPort

public int getHttpsPort()
Get HTTPS port.

Returns:
the HTTPS port

getHttpsKeystoreFile

public java.lang.String getHttpsKeystoreFile()
Get the keystore file path

Returns:
the keystore file path

getHttpsKeystorePassword

public java.lang.String getHttpsKeystorePassword()
Get the keystore password

Returns:
the keystore password

getHttpsKeyPassword

public java.lang.String getHttpsKeyPassword()
Get the key password

Returns:
the key password

getHttpsTruststoreType

public java.lang.String getHttpsTruststoreType()
Get the truststore type (JKS / PKCS12)

Returns:
the truststore type (JKS / PKCS12)

getHttpsTruststoreFile

public java.lang.String getHttpsTruststoreFile()
Get the truststore file path

Returns:
the truststore file path

getHttpsTruststorePassword

public java.lang.String getHttpsTruststorePassword()
Get the truststore password

Returns:
the truststore password

getMethodList

protected java.util.List<java.lang.String> getMethodList()
Overrides:
getMethodList in class org.ow2.petals.component.framework.DefaultBootstrap

setHttpAcceptors

public void setHttpAcceptors(int httpAcceptors)
Set HTTP acceptor number

Parameters:
httpAcceptors - the number of HTTP acceptor

setHttpHostName

public void setHttpHostName(java.lang.String httpHostName)
Set the HTTP host name

Parameters:
httpHostName - the HTTP host name

setHttpPort

public void setHttpPort(int httpPort)
Set the HTTP port

Parameters:
httpPort - the HTTP port

setHttpServicesContext

public void setHttpServicesContext(java.lang.String httpServicesContext)
Set HTTP service context

Parameters:
httpServicesContext - the HTTP service context

setHttpServicesList

public void setHttpServicesList(boolean httpServicesList)
Define if the service list is available

Parameters:
httpServicesList - true if the service list is available, otherwise false

setHttpServicesMapping

public void setHttpServicesMapping(java.lang.String httpServicesMapping)
Set the HTTP service mapping

Parameters:
httpServicesMapping - the HTTP service mapping

setHttpThreadPoolSizeMax

public void setHttpThreadPoolSizeMax(int httpThreadPoolSizeMax)
Set the HTTP thread pool maximum size

Parameters:
httpThreadPoolSizeMax - the HTTP thread pool maximum size

setHttpThreadPoolSizeMin

public void setHttpThreadPoolSizeMin(int httpThreadPoolSizeMin)
Set the HTTP thread pool minimum size

Parameters:
httpThreadPoolSizeMin - the HTTP thread pool minimum size

setJavaNamingFactoryInitial

public void setJavaNamingFactoryInitial(java.lang.String javaNamingFactoryInitial)
Set the Java initial factory naming

Parameters:
javaNamingFactoryInitial - the Java initial factory naming

setJavaNamingProviderURL

public void setJavaNamingProviderURL(java.lang.String javaNamingProviderURL)
Set the Java URL provider naming

Parameters:
javaNamingProviderURL - the Java URL provider naming

setJMSConnectionFactoryJNDIName

public void setJMSConnectionFactoryJNDIName(java.lang.String jmsConnectionFactoryJNDIName)
Set the JMS connection factory JNDI name

Parameters:
jmsConnectionFactoryJNDIName - the JMS connection factory JNDI name

setHttpsEnabled

public void setHttpsEnabled(boolean isHttpsEnabled)
Define if HTTPS is enabled

Parameters:
isHttpsEnabled - a flag set to true if HTTPS is enabled, otherwise false

setHttpsPort

public void setHttpsPort(int httpsPort)
Set the HTTPS port

Parameters:
httpPort - the HTTPS port

setHttpsKeystoreType

public void setHttpsKeystoreType(java.lang.String httpsKeystoreType)
Set the type of the keystore (JKS / PKCS12)

Parameters:
httpsKeystoreType - the type of the keystore (JKS / PKCS12)

setHttpsKeystoreFile

public void setHttpsKeystoreFile(java.lang.String httpsKeytoreFile)
Set the keystore absolute file path

Parameters:
httpsKeytoreFile - the keystore absolute file path

setHttpsKeystorePassword

public void setHttpsKeystorePassword(java.lang.String httpsKeytorePassword)
Set the keystore password

Parameters:
httpsKeytorePassword - the keystore password

setHttpsKeyPassword

public void setHttpsKeyPassword(java.lang.String httpsKeytoreKeyPassword)
Set the key password

Parameters:
httpsKeytoreKeyPassword - the key password

setHttpsTruststoreType

public void setHttpsTruststoreType(java.lang.String httpsTruststoreType)
Set the type of the truststore (JKS / PKCS12)

Parameters:
httpsTruststoreType - the type of the truststore (JKS / PKCS12)

setHttpsTruststoreFile

public void setHttpsTruststoreFile(java.lang.String httpsTruststoreFile)
Set the truststore absolute file path

Parameters:
httpsTruststoreFile - the truststore absolute file path

setHttpsTruststorePassword

public void setHttpsTruststorePassword(java.lang.String httpsTruststorePassword)
Set the truststore password

Parameters:
httpsTruststorePassword - the truststore password


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