|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.cs.servlet.HttpURLConnectionThin
public class HttpURLConnectionThin
The HttpURLConnectionThin class is used to establish a client/server connection.
Field Summary | |
---|---|
(package private) static byte[] |
Base64EncMap
|
protected java.lang.String |
charEncoding
Character encoding used in the HTTP message body sent in C/S requests. |
(package private) boolean |
connected
|
(package private) java.lang.String |
connection
|
(package private) int |
contentLength
|
(package private) java.lang.String |
file
|
(package private) boolean |
getInputStreamCalled
|
(package private) java.lang.String |
host
|
(package private) java.net.Socket |
hostSocket
|
(package private) java.io.DataInputStream |
is
|
(package private) java.io.InputStream |
originalIS
|
(package private) java.io.DataOutputStream |
os
|
(package private) int |
port
|
(package private) java.lang.String |
protocol
|
(package private) java.lang.String |
proxyCredentials
|
(package private) java.lang.String |
proxyHost
|
(package private) int |
proxyPort
|
(package private) int |
rc
|
(package private) java.lang.String |
serverCredentials
|
protected boolean |
sslEnabled
|
protected SSLEnabler |
sslEnabler
|
(package private) java.lang.String |
status
|
(package private) java.net.URL |
theURL
|
Constructor Summary | |
---|---|
HttpURLConnectionThin()
This constructor creates a HttpURLConnectionThin object. |
|
HttpURLConnectionThin(java.net.URL u,
SSLEnabler anSSLEnabler,
boolean aKeepAlive,
CSConnectionCookies conCookies)
This constructor creates a HttpURLConnectionThin object. |
|
HttpURLConnectionThin(java.net.URL u,
SSLEnabler anSSLEnabler,
boolean aKeepAlive,
java.lang.String aCSClientName,
CSConnectionCookies conCookies)
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. |
java.lang.String |
getCharEncoding()
Obtains the charEncoding attribute. |
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. |
SSLEnabler |
getSSLEnabler()
Returns the sslEnabler. |
java.lang.String |
getUserAgent()
Gets the fieldUserAgent property (String) value. |
boolean |
isSSLEnabled()
Returns the sslEnabled. |
void |
readHeaders()
Reads the headers of the response. |
java.lang.String |
readLine()
Reads a line of the response. |
void |
reset()
reset this connection |
void |
setBasicAuthenticationHeader(java.lang.String userAndPasswordId)
Sets the serverCredentials property (String) value. |
void |
setCharEncoding(java.lang.String c)
Sets the charEncoding attribute. |
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 |
setSSLEnabled(boolean sslEnabled)
Sets the sslEnabled. |
void |
setSSLEnabler(SSLEnabler sslEnabler)
Sets the sslEnabler. |
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 |
Field Detail |
---|
java.net.URL theURL
java.lang.String protocol
java.lang.String host
int port
java.lang.String file
java.net.Socket hostSocket
java.io.DataOutputStream os
java.io.DataInputStream is
boolean getInputStreamCalled
java.lang.String status
int rc
int contentLength
java.lang.String connection
boolean connected
protected boolean sslEnabled
protected SSLEnabler sslEnabler
java.io.InputStream originalIS
java.lang.String proxyHost
int proxyPort
java.lang.String serverCredentials
java.lang.String proxyCredentials
static byte[] Base64EncMap
protected java.lang.String charEncoding
Constructor Detail |
---|
public HttpURLConnectionThin()
public HttpURLConnectionThin(java.net.URL u, SSLEnabler anSSLEnabler, boolean aKeepAlive, CSConnectionCookies conCookies)
u
- java.net.URLanSSLEnabler
- SSLEnableraKeepAlive
- booleanconCookies
- CSConnectionCookiespublic HttpURLConnectionThin(java.net.URL u, SSLEnabler anSSLEnabler, boolean aKeepAlive, java.lang.String aCSClientName, CSConnectionCookies conCookies)
u
- java.net.URLanSSLEnabler
- SSLEnableraKeepAlive
- booleanconCookies
- CSConnectionCookiesMethod Detail |
---|
public static final java.lang.String base64Encode(java.lang.String str)
str
- the string
public void connect() throws java.lang.Exception
java.lang.Exception
public void disconnect()
public int getContentLength()
public java.io.DataInputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.io.DataOutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getSessionID()
public java.lang.String getUserAgent()
public void readHeaders() throws java.lang.Exception
java.lang.Exception
public final java.lang.String readLine() throws java.io.IOException
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
java.io.IOException
public SSLEnabler getSSLEnabler()
public void setSSLEnabler(SSLEnabler sslEnabler)
sslEnabler
- The sslEnabler to setpublic boolean isSSLEnabled()
public void setSSLEnabled(boolean sslEnabled)
sslEnabled
- The sslEnabled to setpublic java.lang.String getCharEncoding()
public void setCharEncoding(java.lang.String c)
c
- String
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |