|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.cs.servlet.HttpURLConnectionThin
The HttpURLConnectionThin class is used to establish a client/server connection.
Constructor Summary | |
HttpURLConnectionThin()
This constructor creates a HttpURLConnectionThin object. |
|
HttpURLConnectionThin(java.net.URL u,
java.lang.String aSessionType,
java.lang.String aKeyRingClass,
boolean aKeepAlive)
This constructor creates a HttpURLConnectionThin object. |
Method Summary | |
static java.lang.String |
base64Encode(java.lang.String str)
This method encodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8). |
void |
connect()
Opens a connection with the server. |
void |
disconnect()
Disconnects with the server. |
int |
getContentLength()
Gets the contentLength property (int) value. |
java.io.DataInputStream |
getInputStream()
Gets the is property (DataInputStream) value. |
java.io.DataOutputStream |
getOutputStream()
Gets the os property (DataOutputStream) value. |
java.lang.String |
getSessionID()
Gets the session id property (String) value. |
java.lang.String |
getUserAgent()
Gets the fieldUserAgent property (String) value. |
void |
readHeaders()
Reads the headers of the response. |
java.lang.String |
readLine()
Reads a line of the response. |
void |
reset()
|
void |
setBasicAuthenticationHeader(java.lang.String userAndPasswordId)
Sets the serverCredentials property (String) value. |
void |
setContentLength(int length)
Sets the contentLength property (int) value. |
void |
setProxy(java.lang.String aProxyHost,
int aProxyPort)
Sets the proxyHost and proxyPort properties values. |
void |
setProxyBasicAuthenticationHeader(java.lang.String userAndPasswordId)
Sets the proxyCredentials property (String) value. |
void |
setSessionId(java.lang.String sessionId)
Sets the fieldSessionId property (String) value. |
void |
setUserAgent(java.lang.String userAgent)
Sets the fieldUserAgent property (String) value. |
boolean |
usingCookies()
Returns true if cookies are used. |
boolean |
usingProxy()
Returns true if proxy is used. |
void |
writeHeaders()
Writes the headers of the request. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public HttpURLConnectionThin()
public HttpURLConnectionThin(java.net.URL u, java.lang.String aSessionType, java.lang.String aKeyRingClass, boolean aKeepAlive)
u
- java.net.URLaSessionType
- java.lang.StringaKeyRingClass
- java.lang.StringaKeepAlive
- booleanMethod Detail |
public static final java.lang.String base64Encode(java.lang.String str)
str
- the stringpublic void connect() throws java.lang.Exception
public void disconnect()
public int getContentLength()
public java.io.DataInputStream getInputStream() throws java.io.IOException
public java.io.DataOutputStream getOutputStream() throws java.io.IOException
public java.lang.String getSessionID()
public java.lang.String getUserAgent()
public void readHeaders() throws java.lang.Exception
public final java.lang.String readLine() throws java.io.IOException
public void reset()
public void setBasicAuthenticationHeader(java.lang.String userAndPasswordId)
userAndPasswordId
- java.lang.Stringpublic void setContentLength(int length)
length
- intpublic void setProxy(java.lang.String aProxyHost, int aProxyPort)
proxyHost
- StringproxyPort
- intpublic void setProxyBasicAuthenticationHeader(java.lang.String userAndPasswordId)
userAndPasswordId
- java.lang.Stringpublic void setSessionId(java.lang.String sessionId)
sessionId
- Stringpublic void setUserAgent(java.lang.String userAgent)
fieldUserAgent
- java.lang.Stringpublic boolean usingCookies()
public boolean usingProxy()
public void writeHeaders() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |