org.apache.activemq.transport.xmpp
Class XmppTransport
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportSupport
org.apache.activemq.transport.TransportThreadSupport
org.apache.activemq.transport.tcp.TcpTransport
org.apache.activemq.transport.xmpp.XmppTransport
- All Implemented Interfaces:
- Runnable, Service, Transport
public class XmppTransport
- extends TcpTransport
- Version:
- $Revision: 468026 $
Fields inherited from class org.apache.activemq.transport.tcp.TcpTransport |
connectionTimeout, dataIn, dataOut, ioBufferSize, localLocation, minmumWireFormatVersion, remoteLocation, socket, socketBufferSize, socketFactory, soTimeout, trace, useLocalHost, wireFormat |
Methods inherited from class org.apache.activemq.transport.tcp.TcpTransport |
closeStreams, connect, doStart, getConnectionTimeout, getIoBufferSize, getKeepAlive, getMinmumWireFormatVersion, getRemoteAddress, getSocketBufferSize, getSoTimeout, getTcpNoDelay, initialiseSocket, isTrace, isUseLocalHost, readCommand, resolveHostName, setConnectionTimeout, setIoBufferSize, setKeepAlive, setMinmumWireFormatVersion, setSocketBufferSize, setSocketOptions, setSoTimeout, setTcpNoDelay, setTrace, setUseLocalHost, toString |
ATTRIBUTE_TO
protected static final QName ATTRIBUTE_TO
outputStream
protected OutputStream outputStream
inputStream
protected InputStream inputStream
XmppTransport
public XmppTransport(WireFormat wireFormat,
Socket socket)
throws IOException
- Throws:
IOException
XmppTransport
public XmppTransport(WireFormat wireFormat,
SocketFactory socketFactory,
URI uri,
URI uri1)
throws IOException
- Throws:
IOException
oneway
public void oneway(Object object)
throws IOException
- Description copied from class:
TcpTransport
- A one way asynchronous send
- Specified by:
oneway
in interface Transport
- Overrides:
oneway
in class TcpTransport
- Throws:
IOException
marshall
public void marshall(Object command)
throws IOException
- Marshalls the given POJO to the client
- Throws:
IOException
run
public void run()
- Description copied from class:
TcpTransport
- reads packets from a Socket
- Specified by:
run
in interface Runnable
- Overrides:
run
in class TcpTransport
getFrom
public String getFrom()
doStop
protected void doStop(ServiceStopper stopper)
throws Exception
- Overrides:
doStop
in class TcpTransport
- Throws:
Exception
initializeStreams
protected void initializeStreams()
throws Exception
- Overrides:
initializeStreams
in class TcpTransport
- Throws:
Exception
writeOpenStream
protected void writeOpenStream(String id,
String from)
throws IOException,
javax.xml.stream.XMLStreamException
- Throws:
IOException
javax.xml.stream.XMLStreamException
Copyright © 2011 Apache Software Foundation. All Rights Reserved.