org.apache.juddi.v3.client.transport.wrapper
Class RequestHandler

java.lang.Object
  extended by org.apache.juddi.v3.client.transport.wrapper.RequestHandler

public class RequestHandler
extends Object

Author:
Tom Cunningham (tcunning@apache.org), Kurt Stam (kurt.stam@redhat.com)

Constructor Summary
RequestHandler()
           
 
Method Summary
 String getMethodName()
           
 String getOperation()
           
 String getOperation(Element uddiReq)
          Grab the local name of the UDDI request element from the UDDI Request.
 Class<?> getOperationClass()
           
 Remote getPortType()
           
static String getText(Element element)
           
 String getVersion()
           
 String getVersion(Element uddiReq, String operation)
          Grab the generic attribute value (version value).
 Node invoke(Element uddiReq)
           
 void setMethodName(String methodName)
           
 void setOperation(String operation)
           
 void setOperationClass(Class<?> operationClass)
           
 void setPortType(Remote portType)
           
 void setVersion(String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestHandler

public RequestHandler()
Method Detail

getOperation

public String getOperation(Element uddiReq)
                    throws Exception
Grab the local name of the UDDI request element from the UDDI Request. If a value isn't returned (either null or an empty String is returned) then throw a FatalError exception. This is probably a configuration problem related to the XML Parser that jUDDI is using.

Parameters:
uddiReq -
Returns:
Throws:
Exception

getVersion

public String getVersion(Element uddiReq,
                         String operation)
                  throws Exception
Grab the generic attribute value (version value). If one isn't specified or the value specified is not "2.0" then throw an exception (this value must be specified for all UDDI requests and currently only version 2.0 UDDI requests are supported).

Parameters:
uddiReq -
Returns:
Throws:
Exception

getText

public static String getText(Element element)
                      throws TransformerException
Throws:
TransformerException

invoke

public Node invoke(Element uddiReq)
            throws Exception
Throws:
Exception

getOperation

public String getOperation()

setOperation

public void setOperation(String operation)

getPortType

public Remote getPortType()

setPortType

public void setPortType(Remote portType)

getMethodName

public String getMethodName()

setMethodName

public void setMethodName(String methodName)

getOperationClass

public Class<?> getOperationClass()

setOperationClass

public void setOperationClass(Class<?> operationClass)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)


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