|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.slamd.common.http.util.ParsedURL
public class ParsedURL
This class provides a data structure for holding information about the components of a URL.
| Constructor Summary | |
|---|---|
ParsedURL()
Creates a new instance of ParsedURL. |
|
ParsedURL(java.lang.String host,
int port,
java.lang.String uri,
boolean useSSL,
java.net.SocketAddress socket)
Creates a new instance of this ParsedURL with the provided information. |
|
| Method Summary | |
|---|---|
java.lang.String |
cookieHeader(java.util.HashMap cookieState)
Retrieves the appropriate cookie header for this URL. |
java.lang.String |
getHost()
Getter for property host. |
int |
getPort()
Getter for property port. |
byte[] |
getRequest(java.util.HashMap cookieState,
boolean authenticate,
java.lang.String uid,
java.lang.String password)
Retrieves a GET request for this URL. |
java.net.SocketAddress |
getSocket()
Getter for property socket. |
java.lang.String |
getUri()
Getter for property uri. |
void |
setHost(java.lang.String host)
Setter for property host. |
void |
setPort(int port)
Setter for property port. |
void |
setSocket(java.net.SocketAddress socket)
Setter for property socket. |
void |
setUri(java.lang.String uri)
Setter for property uri. |
void |
setUseSSL(boolean useSSL)
Setter for property useSSL. |
boolean |
useSSL()
Getter for property useSSL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParsedURL()
public ParsedURL(java.lang.String host,
int port,
java.lang.String uri,
boolean useSSL,
java.net.SocketAddress socket)
host - The host for the URL.port - The port for the URL.uri - The URI for the URL.useSSL - Indicates whether to use SSL for communication.socket - The socket address for the URL.| Method Detail |
|---|
public java.lang.String getHost()
public void setHost(java.lang.String host)
host - New value of property host.public int getPort()
public void setPort(int port)
port - New value of property port.public java.lang.String getUri()
public void setUri(java.lang.String uri)
uri - New value of property uri.public java.net.SocketAddress getSocket()
public void setSocket(java.net.SocketAddress socket)
socket - New value of property socket.public boolean useSSL()
public void setUseSSL(boolean useSSL)
useSSL - New value of property useSSL.
public byte[] getRequest(java.util.HashMap cookieState,
boolean authenticate,
java.lang.String uid,
java.lang.String password)
cookieState - The state information to use for including a cookie.authenticate - Indicates whether to include authentication
information in the header.uid - The uid to use for authentication.password - The password to use for authentication.
public java.lang.String cookieHeader(java.util.HashMap cookieState)
cookieState - The state information for the cookie.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||