com.ibm.wsgw.config
Class TargetServiceLocation

java.lang.Object
  |
  +--com.ibm.wsgw.config.TargetServiceLocation
All Implemented Interfaces:
java.io.Serializable

public class TargetServiceLocation
extends java.lang.Object
implements java.io.Serializable

This class contains the key information for a specific target service.

The key contains the target service location, namespace and name, and uniquely defines a target service.

Version:
1.3
See Also:
Serialized Form

Field Summary
static java.lang.String copyright
          Copyright string.
 java.lang.String serviceLocation
          The service location.
 int serviceLocationType
          The service location type.
 java.lang.String serviceName
          The service name.
 java.lang.String serviceNamespace
          The service namespace.
static int UDDI_LOCATION
          This value indicates that the location of a WSDL definition is a UDDI directory.
static int URL_LOCATION
          This value indicates that the location of a WSDL definition is a URL.
 
Constructor Summary
TargetServiceLocation(java.lang.String serviceLocation, int serviceLocationType, java.lang.String serviceNamespace, java.lang.String serviceName)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks equality.
 int hashCode()
          Returns the hashcode for the object.
 java.lang.String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string. Any code placed between the comments will be over written

URL_LOCATION

public static final int URL_LOCATION
This value indicates that the location of a WSDL definition is a URL.

In this case, the location is simply a URL.


UDDI_LOCATION

public static final int UDDI_LOCATION
This value indicates that the location of a WSDL definition is a UDDI directory.

In this case, the location is of the form: ,,,


serviceLocation

public java.lang.String serviceLocation
The service location.

serviceLocationType

public int serviceLocationType
The service location type.

serviceNamespace

public java.lang.String serviceNamespace
The service namespace.

serviceName

public java.lang.String serviceName
The service name.
Constructor Detail

TargetServiceLocation

public TargetServiceLocation(java.lang.String serviceLocation,
                             int serviceLocationType,
                             java.lang.String serviceNamespace,
                             java.lang.String serviceName)
Constructor.
Parameters:
serviceLocation - The service location.
serviceLocationType - The service location type.
serviceNamespace - The service namespace.
serviceName - The service name.
See Also:
Method Detail

equals

public final boolean equals(java.lang.Object other)
Checks equality.

We consider two keys to be equal if the location, namespace and name are the same.

Overrides:
equals in class java.lang.Object
Parameters:
other - The other object to be compared.
Returns:
Indicates whether the objects are equal.
See Also:

hashCode

public final int hashCode()
Returns the hashcode for the object.

Given equality by name, we have to define the hashcode based on the name.

Overrides:
hashCode in class java.lang.Object
Parameters:
-  
Returns:
The hashcode.
See Also:

toString

public final java.lang.String toString()
Returns the string representation of the object.
Overrides:
toString in class java.lang.Object
Parameters:
-  
Returns:
The string representation.
See Also:


Copyright © 2002 IBM. All Rights Reserved.