org.ogf.graap.wsag.wsrf.bootstrap
Class WSAG4JContextListener

java.lang.Object
  extended by org.ogf.graap.wsag.wsrf.bootstrap.WSAG4JContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class WSAG4JContextListener
extends Object
implements javax.servlet.ServletContextListener

Author:
owaeld

Constructor Summary
WSAG4JContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent eContext)
          
 void contextInitialized(javax.servlet.ServletContextEvent contextEvent)
          
protected  String getDefaultGatewayURI(javax.servlet.ServletContext context)
          Returns the gateway URI for the web application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSAG4JContextListener

public WSAG4JContextListener()
Method Detail

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent eContext)

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
See Also:
ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent contextEvent)

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
See Also:
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)

getDefaultGatewayURI

protected String getDefaultGatewayURI(javax.servlet.ServletContext context)
                               throws Exception
Returns the gateway URI for the web application.

Parameters:
context - the servlet context of the web application
Returns:
the default gateway URI (application URL)
Throws:
Exception - failed to resolve the application URL


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.