public class InvocationKey
extends java.lang.Object
Constructor and Description |
---|
InvocationKey()
Create an empty invocation key.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public void init(boolean isSecure, java.lang.CharSequence host, int port, byte[] uri, int uriLength)
host
- the request's hostport
- the request's porturi
- the raw byte array containing the uriurlLength
- the length of the uri in the byte arraypublic boolean isSecure()
public java.lang.CharSequence getHost()
public void setHost(java.lang.CharSequence host)
public int getPort()
public void setPort(int port)
public byte[] getUriBuffer()
public int getUriLength()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object b)
equals
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object