org.ow2.petals.binding.soap.listener.incoming
Class SoapServerConfig

java.lang.Object
  extended by org.ow2.petals.binding.soap.listener.incoming.SoapServerConfig

public class SoapServerConfig
extends java.lang.Object

This class is used to store only the SOAP server related configuration values.

Author:
Christophe HAMERLING - eBMWebSourcing

Field Summary
protected  int jettyAcceptors
          The number of acceptors
protected  int jettyThreadMaxPoolSize
          The thread pool maximum size
protected  int jettyThreadMinPoolSize
          The thread pool minimum size
 
Constructor Summary
SoapServerConfig(java.util.logging.Logger logger, java.lang.String host, int httpPort)
          Creates a new instance of SoapServerConfig
 
Method Summary
 void addRedirect(java.lang.String from, java.lang.String to)
          Define a HTTP redirection (to customize URLs)
 java.lang.String buildServiceAddress(java.lang.String transport, java.lang.String serviceName)
           
 java.lang.String getBaseURL()
           
 java.lang.String getBaseURL(java.lang.String transport)
           
 org.apache.axis2.addressing.EndpointReference[] getEPRsForAxisService(java.lang.String serviceName, java.lang.String transport)
          Get the EPRs for the specified Axis service name and protocol
 java.lang.String getHostAddress()
          Return the HTTP/HTTPS host name
 java.lang.String getHostToDisplay()
          Return the HTTP/HTTPS host names (to display)
 int getHttpPort()
           
 java.lang.String getHttpsKeystoreFile()
          Get the keystore file path
 java.lang.String getHttpsKeystoreKeyPassword()
          Get the key password
 java.lang.String getHttpsKeystorePassword()
          Get the keystore password
 java.lang.String getHttpsKeystoreType()
          Get the keystore type (JKS / PKCS12)
 int getHttpsPort()
           
 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 getJettyAcceptors()
           
 int getJettyThreadMaxPoolSize()
           
 int getJettyThreadMinPoolSize()
           
 java.lang.String getRedirect(java.lang.String from)
           
 java.lang.String getServicesContext()
           
 java.lang.String getServicesMapping()
           
 java.lang.String getServicesURL(java.lang.String transport)
          Get the URL of the base URL for the services
 java.lang.String getServiceURL(java.lang.String serviceName, java.lang.String transport)
          Get the URL of the service for the specified service name and protocol
 void initTransportListenerForAxis(org.apache.axis2.description.TransportInDescription transprtInDesc, java.lang.String transport)
          Initialize the transport description for Axis
 boolean isHttpsEnabled()
          Return if HTTPS is enabled
 boolean isProvidesList()
           
 boolean isRestricted()
          Return if the HTTP/HTTPS server is configured to listen to only one interface or not
 boolean isValidHostName()
          Return if the host is valid
 void removeRedirect(java.lang.String from)
           
 void setHttpPort(int port)
           
 void setHttpsEnabled(boolean isHttpsEnabled)
          Define if HTTPS is enabled
 void setHttpsKeyPassword(java.lang.String httpsKeytoreKeyPassword)
          Set the key password
 void setHttpsKeytoreFile(java.lang.String httpsKeytoreFile)
          Set the keystore absolute file path
 void setHttpsKeytorePassword(java.lang.String httpsKeytorePassword)
          Set the keystore password
 void setHttpsKeytoreType(java.lang.String httpsKeystoreType)
          Set the type of the keystore (JKS / PKCS12)
 void setHttpsPort(int 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 setJettyAcceptors(int jettyAcceptors)
           
 void setJettyThreadMaxPoolSize(int jettyThreadMaxPoolSize)
           
 void setJettyThreadMinPoolSize(int jettyThreadMinPoolSize)
           
 void setProvidesList(boolean providesList)
           
 void setRestrict(boolean restricted)
           
 void setServicesContext(java.lang.String servicesContext)
           
 void setServicesMapping(java.lang.String servicesMapping)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jettyThreadMaxPoolSize

protected int jettyThreadMaxPoolSize
The thread pool maximum size


jettyThreadMinPoolSize

protected int jettyThreadMinPoolSize
The thread pool minimum size


jettyAcceptors

protected int jettyAcceptors
The number of acceptors

Constructor Detail

SoapServerConfig

public SoapServerConfig(java.util.logging.Logger logger,
                        java.lang.String host,
                        int httpPort)
Creates a new instance of SoapServerConfig

Method Detail

isValidHostName

public boolean isValidHostName()
Return if the host is valid

Returns:
true if the host is valid, otherwise false

isRestricted

public boolean isRestricted()
Return if the HTTP/HTTPS server is configured to listen to only one interface or not

Returns:
true if the HTTP/HTTPS server listens to only one interface, otherwise false

getHostAddress

public java.lang.String getHostAddress()
Return the HTTP/HTTPS host name

Returns:
the HTTP/HTTPS host name

getHostToDisplay

public java.lang.String getHostToDisplay()
Return the HTTP/HTTPS host names (to display)

Returns:
the HTTP/HTTPS host names (to display)

getJettyAcceptors

public int getJettyAcceptors()
Returns:
the jettyAcceptors

getJettyThreadMaxPoolSize

public int getJettyThreadMaxPoolSize()
Returns:
the jettyThreadMaxPoolSize

getJettyThreadMinPoolSize

public int getJettyThreadMinPoolSize()
Returns:
the jettyThreadMinPoolSize

getHttpPort

public int getHttpPort()
Returns:
the HTTP port

getHttpsPort

public int getHttpsPort()
Returns:
the HTTPS port

getServicesContext

public java.lang.String getServicesContext()
Returns:
the servicesContext

getServicesMapping

public java.lang.String getServicesMapping()
Returns:
the servicesMapping

isProvidesList

public boolean isProvidesList()
Returns:
the providesList

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)

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

getHttpsKeystoreKeyPassword

public java.lang.String getHttpsKeystoreKeyPassword()
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

setJettyAcceptors

public void setJettyAcceptors(int jettyAcceptors)
Parameters:
jettyAcceptors - the jettyAcceptors to set

setJettyThreadMaxPoolSize

public void setJettyThreadMaxPoolSize(int jettyThreadMaxPoolSize)
Parameters:
jettyThreadMaxPoolSize - the jettyThreadMaxPoolSize to set

setJettyThreadMinPoolSize

public void setJettyThreadMinPoolSize(int jettyThreadMinPoolSize)
Parameters:
jettyThreadMinPoolSize - the jettyThreadMinPoolSize to set

setHttpPort

public void setHttpPort(int port)
Parameters:
HTTP - port the HTTP port to set

setHttpsPort

public void setHttpsPort(int port)
Parameters:
HTTPS - port the HTTPS port to set

setProvidesList

public void setProvidesList(boolean providesList)
Parameters:
providesList - the providesList to set

setRestrict

public void setRestrict(boolean restricted)
Parameters:
restrict - the restrict to set

setServicesContext

public void setServicesContext(java.lang.String servicesContext)
Parameters:
servicesContext - the servicesContext to set

setServicesMapping

public void setServicesMapping(java.lang.String servicesMapping)
Parameters:
servicesMapping - the servicesMapping to set

setHttpsEnabled

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

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

setHttpsKeytoreType

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

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

setHttpsKeytoreFile

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

Parameters:
httpsKeytoreFile - the keystore absolute file path

setHttpsKeytorePassword

public void setHttpsKeytorePassword(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

getEPRsForAxisService

public org.apache.axis2.addressing.EndpointReference[] getEPRsForAxisService(java.lang.String serviceName,
                                                                             java.lang.String transport)
                                                                      throws org.apache.axis2.AxisFault
Get the EPRs for the specified Axis service name and protocol

Parameters:
serviceName - the Axis service name
protocol - the protocol
axisConfigurationContext - the Axis 2 configuration
Returns:
the endpoint reference for the specified Axis service and protocol
Throws:
org.apache.axis2.AxisFault

getServiceURL

public java.lang.String getServiceURL(java.lang.String serviceName,
                                      java.lang.String transport)
Get the URL of the service for the specified service name and protocol

Parameters:
serviceName - the Axis service name
transport - the transport
Returns:
the URL of the service

getServicesURL

public java.lang.String getServicesURL(java.lang.String transport)
Get the URL of the base URL for the services

Parameters:
transport - the transport
Returns:

initTransportListenerForAxis

public void initTransportListenerForAxis(org.apache.axis2.description.TransportInDescription transprtInDesc,
                                         java.lang.String transport)
                                  throws org.apache.axis2.AxisFault
Initialize the transport description for Axis

Parameters:
transprtInDesc - the transport description
port - the port to use to initialize the transport description
Throws:
org.apache.axis2.AxisFault

addRedirect

public void addRedirect(java.lang.String from,
                        java.lang.String to)
Define a HTTP redirection (to customize URLs)

Parameters:
from - Original URI
to - Destination URI

getRedirect

public java.lang.String getRedirect(java.lang.String from)

removeRedirect

public void removeRedirect(java.lang.String from)

getBaseURL

public java.lang.String getBaseURL()

getBaseURL

public java.lang.String getBaseURL(java.lang.String transport)

buildServiceAddress

public java.lang.String buildServiceAddress(java.lang.String transport,
                                            java.lang.String serviceName)


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