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

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

public class SoapExternalListenerManager
extends java.lang.Object

This class is used to manage listeners for external WS addresses registered during SU deployments

Since:
Petals 1.1
Version:
$Rev$
Author:
alouis - EBM Websourcing, chamerling - EBM Websourcing

Field Summary
protected  java.util.Set<java.lang.String> addresses
           
protected  org.ow2.petals.component.framework.su.AbstractServiceUnitManager bindingSUM
           
protected  javax.jbi.messaging.DeliveryChannel channel
           
protected  org.ow2.petals.component.framework.AbstractComponent component
           
protected  SoapServer httpServer
           
protected  java.util.logging.Logger logger
           
protected  PetalsReceiver petalsReceiver
           
protected  SoapServerConfig serverConfig
           
protected  SoapComponentContext soapContext
           
 
Constructor Summary
SoapExternalListenerManager(org.ow2.petals.component.framework.AbstractComponent component, javax.jbi.messaging.DeliveryChannel dchannel, org.ow2.petals.component.framework.su.AbstractServiceUnitManager bindingSUM, SoapComponentContext soapContext, PetalsReceiver petalsReceiver, java.util.logging.Logger log)
          Creates a new instance of SoapExternalListenerManager
 
Method Summary
 java.util.Set<java.lang.String> getAddresses()
           
 SoapServerConfig getSoapServerConfig()
          Get the URL where services can be accessed
protected  PetalsDispatcher retrievePetalsDispatcherFromAxisConfiguration()
          Retrieve from the AxisConfiguration the PetalsDispatcher object.
 void start()
          Starts the listener manager : Start the embedded HTTP server and initialize the dispatcher.
protected  void startHttpServer()
          Init and start the HTTP server which will handle external SOAP request.
 void stop()
          Stops the listener manager : Stop the embedded HTTP server that handles incoming requests.
protected  void stopHttpServer()
          Stop the HTTP server
protected  void validateHost(SoapServerConfig config, java.lang.String host)
           
 
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

addresses

protected java.util.Set<java.lang.String> addresses

channel

protected javax.jbi.messaging.DeliveryChannel channel

component

protected org.ow2.petals.component.framework.AbstractComponent component

bindingSUM

protected org.ow2.petals.component.framework.su.AbstractServiceUnitManager bindingSUM

httpServer

protected SoapServer httpServer

serverConfig

protected SoapServerConfig serverConfig

soapContext

protected SoapComponentContext soapContext

petalsReceiver

protected PetalsReceiver petalsReceiver
Constructor Detail

SoapExternalListenerManager

public SoapExternalListenerManager(org.ow2.petals.component.framework.AbstractComponent component,
                                   javax.jbi.messaging.DeliveryChannel dchannel,
                                   org.ow2.petals.component.framework.su.AbstractServiceUnitManager bindingSUM,
                                   SoapComponentContext soapContext,
                                   PetalsReceiver petalsReceiver,
                                   java.util.logging.Logger log)
Creates a new instance of SoapExternalListenerManager

Parameters:
ccontext -
dchannel -
bindingSUM -
soapContext -
propertiesManager -
log -
Method Detail

start

public void start()
           throws org.apache.axis2.AxisFault
Starts the listener manager : Start the embedded HTTP server and initialize the dispatcher.

Throws:
org.apache.axis2.AxisFault

stop

public void stop()
          throws org.apache.axis2.AxisFault
Stops the listener manager : Stop the embedded HTTP server that handles incoming requests.

Throws:
org.apache.axis2.AxisFault

startHttpServer

protected void startHttpServer()
                        throws org.apache.axis2.AxisFault
Init and start the HTTP server which will handle external SOAP request. The axis2.xml defines a Petals dispatcher that will catch incoming requests.

Throws:
org.apache.axis2.AxisFault

stopHttpServer

protected void stopHttpServer()
                       throws org.apache.axis2.AxisFault
Stop the HTTP server

Throws:
org.apache.axis2.AxisFault

retrievePetalsDispatcherFromAxisConfiguration

protected PetalsDispatcher retrievePetalsDispatcherFromAxisConfiguration()
                                                                  throws org.apache.axis2.AxisFault
Retrieve from the AxisConfiguration the PetalsDispatcher object. (AxisConfiguration/GlobalInFlow/Dispatch/PetalsDispatcher)

Returns:
PetalsDispatcher object
Throws:
org.apache.axis2.AxisFault - PetalsDispatcher object not found

validateHost

protected void validateHost(SoapServerConfig config,
                            java.lang.String host)
Parameters:
config -

getSoapServerConfig

public SoapServerConfig getSoapServerConfig()
Get the URL where services can be accessed

Returns:

getAddresses

public java.util.Set<java.lang.String> getAddresses()


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