|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.semoa.webservice.uddi.UddiProxy
This class represents an UDDI proxy which allows to register, unregister and find implementations for interfaces.
| Field Summary | |
protected String |
businessKey_
business key where to register services |
protected String |
inquiryURL_
Inquiry URL of UDDI registry |
private static Logger |
log_
The Logger instance for this class |
private String |
password_
password for the UDDI server |
protected org.uddi4j.client.UDDIProxy |
proxy_
UDDI4J Proxy |
protected String |
publishURL_
Publish URL of UDDI registry |
protected org.uddi4j.response.AuthToken |
token_
UDDI server authentication token |
private String |
username_
username for the UDDI server |
| Constructor Summary | |
UddiProxy()
|
|
| Method Summary | |
void |
connect()
This method connects to the uddi server and obtains an authentication token. |
void |
disconnect()
The disconnect method disconnects from the uddi server
and discards the authentication token. |
boolean |
existWebservice(String name,
String wsdlUrl,
Vector interfaceKeys)
The existWebservice method checks if a given
webservice is already registred. |
String |
findInterface(String name,
String hashcode)
The findInterface method returns the interface key
of a specific interface with the given name and hashcode. |
Vector |
findWebservices(String name)
The findWebservices method is used to find webservices
based on the name of the service. |
Vector |
findWebservices(Vector interfaceKeys)
The findWebservices method finds services based on
the implemented interfaces. |
protected String |
getBusinessKey(String name)
Returns the key of the business entity with the given name. |
protected String |
getTModelName(String tModelKey)
The getTModelName methods returns the name of a
TModel to a corresponding TModel key. |
Webservice.Description |
getWebserviceDescription(String serviceKey)
The getWebserviceDescription method returns information
about a webservice. |
String |
registerInterface(String name,
String hashcode)
The registerInterface method registers an interface
in the UDDI database and returns the key. |
void |
registerWebservice(String name,
String description,
String wsdlUrl,
Vector interfaceKeys)
The registerWebservice registers a webservice with
interfaces. |
void |
revokeWebservice(String name,
String description,
String wsdlUrl,
Vector interfaceKeys)
The revokeWebservice method unregisters a webservice
with the given data. |
void |
setConnectionData(String inquiryURL,
String publishURL,
String username,
String password,
String businessKey,
String businessName)
The setConnectionData sets data which is required to
connect to the uddi server to use publishing API. |
String |
toString()
Returns the String representation of this instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static Logger log_
Logger instance for this class
private String username_
private String password_
protected org.uddi4j.client.UDDIProxy proxy_
protected org.uddi4j.response.AuthToken token_
protected String businessKey_
protected String publishURL_
protected String inquiryURL_
| Constructor Detail |
public UddiProxy()
| Method Detail |
public void connect()
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException
setConnectionData first
to set credentials.
org.uddi4j.UDDIException - if the UDDIProxy cannot create the authentication token
org.uddi4j.transport.TransportException - if the UDDIProxy cannot create the authentication token
public void disconnect()
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException
disconnect method disconnects from the uddi server
and discards the authentication token.
org.uddi4j.UDDIException - if the UDDIProxy cannot discard the authentication token
org.uddi4j.transport.TransportException - if the UDDIProxy cannot discard the authentication token
public void setConnectionData(String inquiryURL,
String publishURL,
String username,
String password,
String businessKey,
String businessName)
throws MalformedURLException,
IllegalArgumentException,
IOException
setConnectionData sets data which is required to
connect to the uddi server to use publishing API.
inquiryURL - UDDI server URL to search the databasepublishURL - UDDI server URL to publish servicesusername - UDDI server usernamepassword - UDDI server passwordbusinessKey - business key where to register services
MalformedURLException - if the UDDIProxy cannot process one of the given URLs
IllegalArgumentException - if one or more parameters are invalid
IOExceptionprotected String getBusinessKey(String name)
name. If no business entity with this name
is found, null is returned.
name - Name of the business entity to search
public String findInterface(String name,
String hashcode)
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException
findInterface method returns the interface key
of a specific interface with the given name and hashcode. If the
interface is not found, it returns null.
name - Name of the interface.hashcode - Hashcode of the interface
org.uddi4j.UDDIException - if the UDDIProxy cannot process the input data
org.uddi4j.transport.TransportException - if the UDDIProxy cannot process the input data
public String registerInterface(String name,
String hashcode)
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException,
IllegalArgumentException
registerInterface method registers an interface
in the UDDI database and returns the key. If the interface already
exists the key is returned without new registration.
name - Name of the interfacehashcode - Hashcode of the interface
org.uddi4j.UDDIException - if the UDDIProxy cannot save the TModel
org.uddi4j.transport.TransportException - if the UDDIProxy cannot save the TModel
IllegalArgumentException - if one or more parameters are invalid
public void registerWebservice(String name,
String description,
String wsdlUrl,
Vector interfaceKeys)
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException,
IllegalArgumentException
registerWebservice registers a webservice with
interfaces.
name - Name of the webservicedescription - Description of the webservicewsdlUrl - URL to the WSDL fileinterfaceKeys - Keys of the implemented interfaces
(get with findInterface)
org.uddi4j.UDDIException - if the UDDIProxy cannot save the service
org.uddi4j.transport.TransportException - if the UDDIProxy cannot save the service
IllegalArgumentException - if one or more parameters are invalid
public void revokeWebservice(String name,
String description,
String wsdlUrl,
Vector interfaceKeys)
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException,
IllegalArgumentException,
Exception
revokeWebservice method unregisters a webservice
with the given data. The first service found is deleted. If no
service is found the method returns with an error.
name - Name of the webservicedescription - Description of the webservicewsdlUrl - URL to the WSDL fileinterfaceKeys - Vector of keys of the interfaces
org.uddi4j.UDDIException - if the UDDIProxy cannot remove the service
org.uddi4j.transport.TransportException - if the UDDIProxy cannot remove the service
IllegalArgumentException - if one or more parameters are invalid
Exception - if no webservice is found
public Vector findWebservices(String name)
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException,
IllegalArgumentException
findWebservices method is used to find webservices
based on the name of the service.
name - Name of the webservice. Wildcards such as
"∗" (matching any corresponding path element) and
"-" (matching any corresponding path element as well as any
following path elements) are supported.
org.uddi4j.UDDIException - if the UDDIProxy cannot find the service
org.uddi4j.transport.TransportException - if the UDDIProxy cannot find the service
IllegalArgumentException - if one or more parameters are invalid
public Vector findWebservices(Vector interfaceKeys)
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException,
IllegalArgumentException
findWebservices method finds services based on
the implemented interfaces.
interfaceKeys - vector of keys of the interfaces the service
implements (use findInterface)
org.uddi4j.UDDIException - if the UDDIProxy cannot find the service
org.uddi4j.transport.TransportException - if the UDDIProxy cannot find the service
IllegalArgumentException - if one or more parameters are invalid
public boolean existWebservice(String name,
String wsdlUrl,
Vector interfaceKeys)
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException,
IllegalArgumentException
existWebservice method checks if a given
webservice is already registred.
name - name of the webservicewsdlUrl - WSDL URL of the webserviceinterfaceKeys - interface keys of the webservice
(use findInterface)
org.uddi4j.UDDIException - if the UDDIProxy cannot find the service
org.uddi4j.transport.TransportException - if the UDDIProxy cannot find the service
IllegalArgumentException - if one or more parameters are invalid
public Webservice.Description getWebserviceDescription(String serviceKey)
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException,
IllegalArgumentException
getWebserviceDescription method returns information
about a webservice.
serviceKey - the key of the webservice
org.uddi4j.UDDIException - if the UDDIProxy cannot find the service description
org.uddi4j.transport.TransportException - if the UDDIProxy cannot find the service description
IllegalArgumentException - if the service key is null
protected String getTModelName(String tModelKey)
throws org.uddi4j.UDDIException,
org.uddi4j.transport.TransportException,
IllegalArgumentException
getTModelName methods returns the name of a
TModel to a corresponding TModel key.
tModelKey - key of the TModel
org.uddi4j.UDDIException - if the UDDIProxy cannot fetch the TModel details
org.uddi4j.transport.TransportException - if the UDDIProxy cannot fetch the TModel details
IllegalArgumentException - if the key is invalidpublic String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||