org.ow2.petals.binding.soap.listener.incoming.jetty
Class SoapServer

java.lang.Object
  extended by org.ow2.petals.binding.soap.listener.incoming.jetty.SoapServer
All Implemented Interfaces:
org.apache.axis2.transport.TransportListener

public class SoapServer
extends java.lang.Object
implements org.apache.axis2.transport.TransportListener

Create a Jetty server that will be the axis2 transportlistener. This Jetty server is used to replace the SimpleHTTPServer provided by axis that have quite bad performances.

Author:
Christophe Hamerling - EBM WebSourcing

Field Summary
protected  SoapServerConfig config
          The component properties
protected  org.apache.axis2.context.ConfigurationContext configurationContext
          The axis2 configuration context (built from axis2.xml config file)
static int HEADER_BUFFER_SIZE
           
protected  org.ow2.petals.ws.notification.WsnIsolationLayer isolation
           
protected  java.util.logging.Logger logger
          The logger
protected  org.mortbay.jetty.Server server
          The Jetty server
protected  ServerStats stats
           
protected  org.mortbay.thread.BoundedThreadPool threadPool
          The jetty thread pool.
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
SoapServer(SoapServerConfig config, SoapComponentContext componentContext, java.util.logging.Logger logger)
          Creates a new instance of SoapServer
 
Method Summary
 void destroy()
           
 org.apache.axis2.context.ConfigurationContext getConfigurationContext()
           
 org.apache.axis2.addressing.EndpointReference getEPRForService(java.lang.String serviceName, java.lang.String ip)
           
 org.apache.axis2.addressing.EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip)
           
 org.apache.axis2.context.SessionContext getSessionContext(org.apache.axis2.context.MessageContext messageContext)
           
 void init(org.apache.axis2.context.ConfigurationContext axisConf, org.apache.axis2.description.TransportInDescription transprtIn)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected java.util.logging.Logger logger
The logger


configurationContext

protected org.apache.axis2.context.ConfigurationContext configurationContext
The axis2 configuration context (built from axis2.xml config file)


config

protected SoapServerConfig config
The component properties


server

protected org.mortbay.jetty.Server server
The Jetty server


threadPool

protected org.mortbay.thread.BoundedThreadPool threadPool
The jetty thread pool. Size is configured from component configuration.


stats

protected ServerStats stats

HEADER_BUFFER_SIZE

public static final int HEADER_BUFFER_SIZE
See Also:
Constant Field Values

isolation

protected org.ow2.petals.ws.notification.WsnIsolationLayer isolation
Constructor Detail

SoapServer

public SoapServer(SoapServerConfig config,
                  SoapComponentContext componentContext,
                  java.util.logging.Logger logger)
           throws org.apache.axis2.AxisFault
Creates a new instance of SoapServer

Parameters:
configContext -
config -
componentContext -
logger -
Throws:
org.apache.axis2.AxisFault
Method Detail

getConfigurationContext

public org.apache.axis2.context.ConfigurationContext getConfigurationContext()
Returns:

getEPRForService

public org.apache.axis2.addressing.EndpointReference getEPRForService(java.lang.String serviceName,
                                                                      java.lang.String ip)
                                                               throws org.apache.axis2.AxisFault
Specified by:
getEPRForService in interface org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

getEPRsForService

public org.apache.axis2.addressing.EndpointReference[] getEPRsForService(java.lang.String serviceName,
                                                                         java.lang.String ip)
                                                                  throws org.apache.axis2.AxisFault
Specified by:
getEPRsForService in interface org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

init

public void init(org.apache.axis2.context.ConfigurationContext axisConf,
                 org.apache.axis2.description.TransportInDescription transprtIn)
          throws org.apache.axis2.AxisFault
Specified by:
init in interface org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

start

public void start()
           throws org.apache.axis2.AxisFault
Specified by:
start in interface org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

stop

public void stop()
          throws org.apache.axis2.AxisFault
Specified by:
stop in interface org.apache.axis2.transport.TransportListener
Throws:
org.apache.axis2.AxisFault

getSessionContext

public org.apache.axis2.context.SessionContext getSessionContext(org.apache.axis2.context.MessageContext messageContext)
Specified by:
getSessionContext in interface org.apache.axis2.transport.TransportListener

destroy

public void destroy()
Specified by:
destroy in interface org.apache.axis2.transport.TransportListener


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