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

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

public class WebHelper
extends java.lang.Object


Field Summary
static java.lang.String JUDDI_CLIENT_MANAGER_NAME
           
static java.lang.String JUDDI_CLIENT_TRANSPORT
           
static org.apache.commons.logging.Log logger
           
static java.lang.String UDDI_CLIENT_CONFIG_FILE
           
static java.lang.String UDDI_CLIENT_MANAGER_NAME
           
 
Constructor Summary
WebHelper()
           
 
Method Summary
static Transport getTransport(javax.servlet.ServletContext servletContext)
           
static Transport getTransport(javax.servlet.ServletContext servletContext, UDDINode remoteNode)
           
static UDDIClerkManager getUDDIClerkManager(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_MANAGER_NAME

public static final java.lang.String UDDI_CLIENT_MANAGER_NAME
See Also:
Constant Field Values

UDDI_CLIENT_CONFIG_FILE

public static final java.lang.String UDDI_CLIENT_CONFIG_FILE
See Also:
Constant Field Values

JUDDI_CLIENT_MANAGER_NAME

public static final java.lang.String JUDDI_CLIENT_MANAGER_NAME
See Also:
Constant Field Values

JUDDI_CLIENT_TRANSPORT

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

WebHelper

public WebHelper()
Method Detail

getUDDIClerkManager

public static UDDIClerkManager getUDDIClerkManager(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,
                                     java.lang.ClassNotFoundException,
                                     java.lang.IllegalArgumentException,
                                     java.lang.SecurityException,
                                     java.lang.InstantiationException,
                                     java.lang.IllegalAccessException,
                                     java.lang.reflect.InvocationTargetException,
                                     java.lang.NoSuchMethodException
Throws:
org.apache.commons.configuration.ConfigurationException
java.lang.ClassNotFoundException
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException

getTransport

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


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