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

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

public class AxisServletServer
extends java.lang.Object

Create a Jetty server that will be the Axis 2 transport listener. This Jetty server is used to replace the SimpleHTTPServer provided by Axis that have quite bad performances.

Author:
Christophe Hamerling - EBM WebSourcing

Constructor Summary
AxisServletServer(java.util.logging.Logger logger, SoapServerConfig config, org.apache.axis2.context.ConfigurationContext configContext)
          Create a SOAP server
 
Method Summary
 void addRedirect(java.lang.String from, java.lang.String to)
          Redirect specified URI to the specified web service address
 void addServlet(javax.servlet.http.HttpServlet servlet)
           
 boolean isRunning()
          Return if the SOAP server is running
 void removeRedirect(java.lang.String from)
          Remove the redirection
 void start()
          Start the SOAP server
 void stop()
          Stop the SOAP server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisServletServer

public AxisServletServer(java.util.logging.Logger logger,
                         SoapServerConfig config,
                         org.apache.axis2.context.ConfigurationContext configContext)
                  throws org.apache.axis2.AxisFault
Create a SOAP server

Parameters:
logger - the logger
config - the SOAP server configuration
configContext - Axis 2 configuration context
Throws:
org.apache.axis2.AxisFault - impossible to set Jetty as SOAP transport listener
Method Detail

start

public void start()
           throws org.apache.axis2.AxisFault
Start the SOAP server

Throws:
org.apache.axis2.AxisFault - the SOAP server can not start

stop

public void stop()
          throws org.apache.axis2.AxisFault
Stop the SOAP server

Throws:
org.apache.axis2.AxisFault - the SOAP server can not stop

isRunning

public boolean isRunning()
Return if the SOAP server is running

Returns:
true if the SOAP server is running, otherwise false

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)
Remove the redirection

Parameters:
from - the URL to redirect

addServlet

public void addServlet(javax.servlet.http.HttpServlet servlet)


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