com.caucho.hessian.io
Class HessianRemote

java.lang.Object
  extended by com.caucho.hessian.io.HessianRemote
All Implemented Interfaces:
java.io.Serializable

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

Encapsulates a remote address when no stub is available, e.g. for Java MicroEdition.

See Also:
Serialized Form

Constructor Summary
HessianRemote()
          Creates an uninitialized Hessian remote.
HessianRemote(java.lang.String type, java.lang.String url)
          Creates a new Hessian remote object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Defines equality
 java.lang.String getType()
          Returns the remote api class name.
 java.lang.String getURL()
          Returns the remote URL.
 int hashCode()
          Defines the hashcode.
 void setURL(java.lang.String url)
          Sets the remote URL.
 java.lang.String toString()
          Readable version of the remote.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HessianRemote

public HessianRemote(java.lang.String type,
                     java.lang.String url)
Creates a new Hessian remote object.

Parameters:
type - the remote stub interface
url - the remote url

HessianRemote

public HessianRemote()
Creates an uninitialized Hessian remote.

Method Detail

getType

public java.lang.String getType()
Returns the remote api class name.


getURL

public java.lang.String getURL()
Returns the remote URL.


setURL

public void setURL(java.lang.String url)
Sets the remote URL.


hashCode

public int hashCode()
Defines the hashcode.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Defines equality

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Readable version of the remote.

Overrides:
toString in class java.lang.Object