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

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

public class SoapServer
extends java.lang.Object

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  java.util.logging.Logger logger
          The logger
protected  org.mortbay.jetty.Server server
          The Jetty server
protected  ServerStats stats
          The Jetty server statistics
protected  org.mortbay.thread.BoundedThreadPool threadPool
          The Jetty thread pool.
 
Constructor Summary
SoapServer(SoapServerConfig config, SoapComponentContext componentContext, java.util.logging.Logger logger)
          Creates a new instance of SoapServer
 
Method Summary
 void addRedirect(java.lang.String from, java.lang.String to)
          Redirect specified URI to the specified web service address
 void removeRedirect(java.lang.String from)
           
 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
The Jetty server statistics


HEADER_BUFFER_SIZE

public static final int HEADER_BUFFER_SIZE
See Also:
Constant Field Values
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

start

public void start()
           throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

stop

public void stop()
          throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

addRedirect

public void addRedirect(java.lang.String from,
                        java.lang.String to)
Redirect specified URI to the specified web service address

Parameters:
from - The URI to redirect
to - The serviceName or address of the destination service

removeRedirect

public void removeRedirect(java.lang.String from)


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