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  java.lang.String baseURL
           
protected  int jettyAcceptors
          Default value is set to 4
protected  int jettyThreadMaxPoolSize
          Default value is set to 255 (The jetty implementation default)
protected  int jettyThreadMinPoolSize
          Default value is set to 1 (The jetty implementation default)
protected  java.lang.String servicesURL
           
protected  java.lang.String wsnContext
           
protected  java.lang.String wsnProducerMapping
           
protected  java.lang.String wsnProducerURL
           
 
Constructor Summary
SoapServerConfig()
          Creates a new instance of SoapServerConfig
 
Method Summary
protected  void addAddress(java.net.InetAddress ia)
           
protected  void addAddresses(java.util.Set<java.net.Inet4Address> addresses)
          Add all the InetAddress
 java.lang.String buildHost()
          Get the host.
 java.lang.String getBaseURL()
           
 java.lang.String getHost()
           
 int getJettyAcceptors()
           
 int getJettyThreadMaxPoolSize()
           
 int getJettyThreadMinPoolSize()
           
 int getPort()
           
 java.lang.String getProtocol()
           
 java.lang.String getServicesContext()
           
 java.lang.String getServicesMapping()
           
 java.lang.String getServicesURL()
          Get the services URL
 java.lang.String getWsnContext()
           
 java.lang.String getWsnProducerMapping()
           
 java.lang.String getWSNProducerURL()
           
 boolean isProvidesList()
           
 boolean isRestrict()
           
 void setJettyAcceptors(int jettyAcceptors)
           
 void setJettyThreadMaxPoolSize(int jettyThreadMaxPoolSize)
           
 void setJettyThreadMinPoolSize(int jettyThreadMinPoolSize)
           
 void setPort(int port)
           
 void setProtocol(java.lang.String protocol)
           
 void setProvidesList(boolean providesList)
           
 void setRestrict(boolean restrict)
           
 void setServicesContext(java.lang.String servicesContext)
           
 void setServicesMapping(java.lang.String servicesMapping)
           
 void setWsnContext(java.lang.String wsnContext)
           
 void setWsnProducerMapping(java.lang.String wsnMapping)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jettyThreadMaxPoolSize

protected int jettyThreadMaxPoolSize
Default value is set to 255 (The jetty implementation default)


jettyThreadMinPoolSize

protected int jettyThreadMinPoolSize
Default value is set to 1 (The jetty implementation default)


jettyAcceptors

protected int jettyAcceptors
Default value is set to 4


wsnContext

protected java.lang.String wsnContext

wsnProducerMapping

protected java.lang.String wsnProducerMapping

baseURL

protected java.lang.String baseURL

wsnProducerURL

protected java.lang.String wsnProducerURL

servicesURL

protected java.lang.String servicesURL
Constructor Detail

SoapServerConfig

public SoapServerConfig()
Creates a new instance of SoapServerConfig

Method Detail

getPort

public int getPort()
Returns:
the port

setPort

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

isProvidesList

public boolean isProvidesList()
Returns:
the providesList

setProvidesList

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

addAddress

protected void addAddress(java.net.InetAddress ia)
Parameters:
host - the host to set

addAddresses

protected void addAddresses(java.util.Set<java.net.Inet4Address> addresses)
Add all the InetAddress

Parameters:
addresses -

getProtocol

public java.lang.String getProtocol()
Returns:
the protocol

setProtocol

public void setProtocol(java.lang.String protocol)
Parameters:
protocol - the protocol to set

getServicesContext

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

setServicesContext

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

getServicesMapping

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

setServicesMapping

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

getJettyThreadMaxPoolSize

public int getJettyThreadMaxPoolSize()
Returns:
the jettyThreadMaxPoolSize

setJettyThreadMaxPoolSize

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

getJettyThreadMinPoolSize

public int getJettyThreadMinPoolSize()
Returns:
the jettyThreadMinPoolSize

setJettyThreadMinPoolSize

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

getJettyAcceptors

public int getJettyAcceptors()
Returns:
the jettyAcceptors

setJettyAcceptors

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

getServicesURL

public java.lang.String getServicesURL()
Get the services URL

Returns:

getBaseURL

public java.lang.String getBaseURL()
Returns:

getHost

public java.lang.String getHost()
Returns:

buildHost

public java.lang.String buildHost()
Get the host. If restricted, get the first address of the addresses set. If not restricted, try to get an address which is not the local one since it can be used from external callers.

Returns:

getWSNProducerURL

public java.lang.String getWSNProducerURL()
Returns:

getWsnContext

public java.lang.String getWsnContext()
Returns:
the wsnContext

setWsnContext

public void setWsnContext(java.lang.String wsnContext)
Parameters:
wsnContext - the wsnContext to set

getWsnProducerMapping

public java.lang.String getWsnProducerMapping()
Returns:
the wsnMapping

setWsnProducerMapping

public void setWsnProducerMapping(java.lang.String wsnMapping)
Parameters:
wsnMapping - the wsnMapping to set

isRestrict

public boolean isRestrict()
Returns:
the restrict

setRestrict

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


Copyright © 2005-2010 OW2 Consortium. All Rights Reserved.