org.apache.activemq.transport.xmpp
Class XmppTransport

java.lang.Object
  extended by org.apache.activemq.util.ServiceSupport
      extended by org.apache.activemq.transport.TransportSupport
          extended by org.apache.activemq.transport.TransportThreadSupport
              extended by org.apache.activemq.transport.tcp.TcpTransport
                  extended by org.apache.activemq.transport.xmpp.XmppTransport
All Implemented Interfaces:
Runnable, Service, Transport

public class XmppTransport
extends TcpTransport

Version:
$Revision: 565003 $

Field Summary
protected static QName ATTRIBUTE_TO
           
protected  InputStream inputStream
           
protected  OutputStream outputStream
           
 
Fields inherited from class org.apache.activemq.transport.tcp.TcpTransport
buffOut, closeAsync, connectionTimeout, dataIn, dataOut, dynamicManagement, ioBufferSize, jmxPort, localLocation, logWriterName, minmumWireFormatVersion, remoteLocation, socket, socketBufferSize, socketFactory, soTimeout, startLogging, stoppedLatch, trace, useLocalHost, wireFormat
 
Constructor Summary
XmppTransport(WireFormat wireFormat, Socket socket)
           
XmppTransport(WireFormat wireFormat, SocketFactory socketFactory, URI uri, URI uri1)
           
 
Method Summary
 void doRun()
           
protected  void doStop(ServiceStopper stopper)
           
 String getFrom()
           
protected  void initializeStreams()
           
 void marshall(Object command)
          Marshalls the given POJO to the client
 void oneway(Object object)
          A one way asynchronous send
protected  void writeOpenStream(String id, String from)
           
 
Methods inherited from class org.apache.activemq.transport.tcp.TcpTransport
closeStreams, connect, doStart, getConnectionTimeout, getIoBufferSize, getJmxPort, getKeepAlive, getLogWriterName, getMinmumWireFormatVersion, getReceiveCounter, getRemoteAddress, getSocketBufferSize, getSoTimeout, getTcpNoDelay, initialiseSocket, isCloseAsync, isDynamicManagement, isStartLogging, isTrace, isUseLocalHost, narrow, readCommand, resolveHostName, run, setCloseAsync, setConnectionTimeout, setDynamicManagement, setIoBufferSize, setJmxPort, setKeepAlive, setLogWriterName, setMinmumWireFormatVersion, setSocketBufferSize, setSocketOptions, setSoTimeout, setStartLogging, setTcpNoDelay, setTrace, setUseLocalHost, stop, toString
 
Methods inherited from class org.apache.activemq.transport.TransportThreadSupport
getStackSize, isDaemon, setDaemon, setStackSize
 
Methods inherited from class org.apache.activemq.transport.TransportSupport
asyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, onException, reconnect, request, request, setTransportListener
 
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.activemq.transport.Transport
asyncRequest, getTransportListener, isConnected, isDisposed, isFaultTolerant, reconnect, request, request, setTransportListener
 
Methods inherited from interface org.apache.activemq.Service
start
 

Field Detail

ATTRIBUTE_TO

protected static final QName ATTRIBUTE_TO

outputStream

protected OutputStream outputStream

inputStream

protected InputStream inputStream
Constructor Detail

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
Method Detail

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

doRun

public void doRun()
           throws IOException
Overrides:
doRun in class TcpTransport
Throws:
IOException

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,
                               XMLStreamException
Throws:
IOException
XMLStreamException


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.