com.caucho.server.http
Class InvocationKey

java.lang.Object
  extended by com.caucho.server.http.InvocationKey

public class InvocationKey
extends java.lang.Object

The invocation key is a triple


Constructor Summary
InvocationKey()
          Create an empty invocation key.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object b)
          Returns true if the key matches the test key.
 java.lang.CharSequence getHost()
          Returns the InvocationKey's host.
 int getPort()
          Returns the InvocationKey's port
 byte[] getUriBuffer()
          Returns the raw byte array containing the uri
 int getUriLength()
          Returns the length of the uri in the byte array.
 int hashCode()
          Returns a hash code of the key.
 void init(boolean isSecure, java.lang.CharSequence host, int port, byte[] uri, int uriLength)
          Initialize the InvocationKey with a new triple.
 boolean isSecure()
           
 void setHost(java.lang.CharSequence host)
          Sets the InvocationKey's host.
 void setPort(int port)
          Sets the InvocationKey's port.
 java.lang.String toString()
          Returns a printable representation of the key.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvocationKey

public InvocationKey()
Create an empty invocation key.

Method Detail

init

public void init(boolean isSecure,
                 java.lang.CharSequence host,
                 int port,
                 byte[] uri,
                 int uriLength)
Initialize the InvocationKey with a new triple.

Parameters:
host - the request's host
port - the request's port
uri - the raw byte array containing the uri
urlLength - the length of the uri in the byte array

isSecure

public boolean isSecure()

getHost

public java.lang.CharSequence getHost()
Returns the InvocationKey's host.


setHost

public void setHost(java.lang.CharSequence host)
Sets the InvocationKey's host.


getPort

public int getPort()
Returns the InvocationKey's port


setPort

public void setPort(int port)
Sets the InvocationKey's port.


getUriBuffer

public byte[] getUriBuffer()
Returns the raw byte array containing the uri


getUriLength

public int getUriLength()
Returns the length of the uri in the byte array.


hashCode

public int hashCode()
Returns a hash code of the key.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object b)
Returns true if the key matches the test key.

Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Returns a printable representation of the key.

Overrides:
toString in class java.lang.Object