org.apache.juddi.v3.client.config
Class WebHelper

java.lang.Object
  extended by org.apache.juddi.v3.client.config.WebHelper

public class WebHelper
extends Object


Field Summary
static String JUDDI_CLIENT_NAME
           
static String JUDDI_CLIENT_TRANSPORT
           
static org.apache.commons.logging.Log logger
           
static String UDDI_CLIENT_CONFIG_FILE
           
static String UDDI_CLIENT_NAME
           
 
Constructor Summary
WebHelper()
           
 
Method Summary
static Transport getTransport(javax.servlet.ServletContext servletContext)
           
static Transport getTransport(javax.servlet.ServletContext servletContext, UDDINode remoteNode)
           
static UDDIClient getUDDIClient(javax.servlet.ServletContext servletContext)
          Checks the servlet context for the manager defined in the web context.
static UDDINode getUDDIHomeNode(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.apache.commons.logging.Log logger

UDDI_CLIENT_NAME

public static final String UDDI_CLIENT_NAME
See Also:
Constant Field Values

UDDI_CLIENT_CONFIG_FILE

public static final String UDDI_CLIENT_CONFIG_FILE
See Also:
Constant Field Values

JUDDI_CLIENT_NAME

public static final String JUDDI_CLIENT_NAME
See Also:
Constant Field Values

JUDDI_CLIENT_TRANSPORT

public static final String JUDDI_CLIENT_TRANSPORT
See Also:
Constant Field Values
Constructor Detail

WebHelper

public WebHelper()
Method Detail

getUDDIClient

public static UDDIClient getUDDIClient(javax.servlet.ServletContext servletContext)
                                throws org.apache.commons.configuration.ConfigurationException
Checks the servlet context for the manager defined in the web context. Optionally, in your web.xml you can specify either the manager name if you want to use an existing manager called 'uddi-portlet-manager':
 <context-param>
   <param-name>uddi.client.manager.name</param-name>
   <param-value>uddi-portlet-manager</param-value>
 </context-param>
 
or, if you don't want to use the default META-INF/uddi.xml file path, but 'META-INF/my-uddi.xml' instead, then you can set:
 <context-param>
   <param-name>uddi.client.config.path</param-name>
   <param-value>META-INF/my-uddi.xml</param-value>
 </context-param>
 

Parameters:
servletContext -
Returns:
Throws:
org.apache.commons.configuration.ConfigurationException

getUDDIHomeNode

public static UDDINode getUDDIHomeNode(javax.servlet.ServletContext servletContext)
                                throws org.apache.commons.configuration.ConfigurationException
Parameters:
servletContext -
Returns:
Throws:
org.apache.commons.configuration.ConfigurationException

getTransport

public static Transport getTransport(javax.servlet.ServletContext servletContext)
                              throws org.apache.commons.configuration.ConfigurationException,
                                     ClassNotFoundException,
                                     IllegalArgumentException,
                                     SecurityException,
                                     InstantiationException,
                                     IllegalAccessException,
                                     InvocationTargetException,
                                     NoSuchMethodException
Throws:
org.apache.commons.configuration.ConfigurationException
ClassNotFoundException
IllegalArgumentException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException

getTransport

public static Transport getTransport(javax.servlet.ServletContext servletContext,
                                     UDDINode remoteNode)
                              throws org.apache.commons.configuration.ConfigurationException,
                                     ClassNotFoundException,
                                     IllegalArgumentException,
                                     SecurityException,
                                     InstantiationException,
                                     IllegalAccessException,
                                     InvocationTargetException,
                                     NoSuchMethodException
Throws:
org.apache.commons.configuration.ConfigurationException
ClassNotFoundException
IllegalArgumentException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.