|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fusesource.stompjms.channel.StompSocket
public class StompSocket
| Constructor Summary | |
|---|---|
StompSocket(javax.net.SocketFactory factory,
java.net.URI localLocation,
java.net.URI remoteLocation)
Connect to a Broker |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
connect(java.lang.String userName,
java.lang.String password,
java.lang.String clientId)
Configures the socket for use |
int |
getConnectionTimeout()
|
int |
getIoBufferSize()
|
java.lang.Boolean |
getKeepAlive()
|
java.lang.String |
getRemoteAddress()
|
int |
getSocketBufferSize()
|
int |
getSoTimeout()
|
java.lang.Boolean |
getTcpNoDelay()
|
void |
initialize()
|
boolean |
isConnected()
|
boolean |
isStarted()
|
boolean |
isStopped()
|
boolean |
isStopping()
|
protected int |
parseContentLength(java.lang.String contentLength)
|
protected java.util.HashMap<java.lang.String,java.lang.String> |
parseHeaders(java.io.DataInput in)
|
void |
run()
reads packets from a Socket |
void |
sendFrame(StompFrame frame)
A one way asynchronous send |
void |
setConnectionTimeout(int connectionTimeout)
Sets the timeout used to connect to the socket |
void |
setExceptionListener(javax.jms.ExceptionListener l)
|
void |
setIoBufferSize(int ioBufferSize)
|
void |
setKeepAlive(java.lang.Boolean keepAlive)
Enable/disable TCP KEEP_ALIVE mode |
void |
setSocketBufferSize(int socketBufferSize)
Sets the buffer size to use on the socket |
void |
setSoTimeout(int soTimeout)
Sets the socket timeout |
void |
setStompFrameListener(StompFrameListener l)
|
void |
setTcpNoDelay(java.lang.Boolean tcpNoDelay)
Enable/disable the TCP_NODELAY option on the socket |
void |
start()
Start receiving messages |
void |
stop()
stop and close the socket |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StompSocket(javax.net.SocketFactory factory,
java.net.URI localLocation,
java.net.URI remoteLocation)
throws java.net.UnknownHostException,
java.io.IOException
factory - localLocation - remoteLocation -
java.net.UnknownHostException
java.io.IOException| Method Detail |
|---|
public void setExceptionListener(javax.jms.ExceptionListener l)
public void setStompFrameListener(StompFrameListener l)
public boolean isConnected()
public boolean isStarted()
public boolean isStopping()
public boolean isStopped()
public void sendFrame(StompFrame frame)
throws java.io.IOException
frame -
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void run()
run in interface java.lang.Runnablepublic int getSocketBufferSize()
public void setSocketBufferSize(int socketBufferSize)
socketBufferSize - public int getSoTimeout()
public void setSoTimeout(int soTimeout)
soTimeout - public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - public java.lang.Boolean getKeepAlive()
public void setKeepAlive(java.lang.Boolean keepAlive)
keepAlive - public java.lang.Boolean getTcpNoDelay()
public void setTcpNoDelay(java.lang.Boolean tcpNoDelay)
tcpNoDelay - public int getIoBufferSize()
public void setIoBufferSize(int ioBufferSize)
ioBufferSize - the ioBufferSize to set
public void connect(java.lang.String userName,
java.lang.String password,
java.lang.String clientId)
throws java.io.IOException
userName - password - clientId -
java.io.IOException
public void initialize()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
public void start()
throws java.io.IOException
java.io.IOException
public void stop()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getRemoteAddress()
protected int parseContentLength(java.lang.String contentLength)
throws ProtocolException
ProtocolException
protected java.util.HashMap<java.lang.String,java.lang.String> parseHeaders(java.io.DataInput in)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||