|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.impl.adaptor.comm.AdaptorSocket | +--com.sun.jaw.impl.adaptor.https.AdaptorSocket
The AdaptorSocket
class provides a wrap-up of the
socket to be used for an HTTP-based adaptor using SSL.
The list of SSL cipher suites can be specified through the use of system properties in the format:
If no cipher suites are specified by the user then the cipher suites enabled by default by the SSL implementation will be used instead.
Fields inherited from class com.sun.jaw.impl.adaptor.comm.AdaptorSocket |
port |
Constructor Summary | |
AdaptorSocket()
Constructs an HTTP/SSL adaptor socket. |
|
AdaptorSocket(int port)
|
Method Summary | |
AdaptorSocket |
createClientSocket()
Create a socket to be used on the client side. |
AdaptorSocket |
createServerSocket(int port)
Create a socket to be used on the server side with the given port |
void |
doBind()
Bind to receive requests (usually used on server side) |
void |
doConnect(java.lang.String serverName,
int serverPort)
Connect to send a request (usually used on client side) |
void |
doDisconnect()
Can be used on both server and client sides. |
java.io.InputStream |
doGetInputStream()
Return an inputstream for this socket. |
java.io.InputStream |
doReceive()
Wait for an incoming message. |
void |
doSend(java.lang.String header,
byte[] content)
Send the given header and content to the peer On the client side, it's usually the initiated request, and on the server side, it's the reply to the client's request. |
void |
doUnbind()
Unbind (usually used on server side) |
java.net.InetAddress |
getLocalAddress()
Return the local IP address. |
int |
getLocalPort()
Return the local port number. |
java.lang.String |
getProtocol()
Return the name of the "protocol" used |
java.net.InetAddress |
getRemoteAddress()
Return the remote IP address. |
int |
getRemotePort()
Return the remote port number. |
java.lang.String |
toString()
|
Methods inherited from class com.sun.jaw.impl.adaptor.comm.AdaptorSocket |
clone,
getTimeout,
setTimeout |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AdaptorSocket()
public AdaptorSocket(int port)
Method Detail |
public AdaptorSocket createServerSocket(int port)
public AdaptorSocket createClientSocket()
public java.lang.String getProtocol()
public void doBind() throws java.io.IOException
public void doUnbind() throws java.io.IOException
public void doConnect(java.lang.String serverName, int serverPort) throws java.net.UnknownHostException, java.io.IOException, CommunicationException
public void doDisconnect() throws java.io.IOException, CommunicationException
public void doSend(java.lang.String header, byte[] content) throws java.io.IOException
public java.io.InputStream doReceive() throws java.io.IOException
public java.io.InputStream doGetInputStream() throws java.io.IOException
public java.net.InetAddress getLocalAddress()
public int getLocalPort()
public java.net.InetAddress getRemoteAddress()
public int getRemotePort()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |