Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomp.protocol
Class StompFrameCodec

java.lang.Object
  extended by org.projectodd.stilts.stomp.protocol.StompFrameCodec

public class StompFrameCodec
extends Object


Field Summary
static StompFrameCodec INSTANCE
           
 
Constructor Summary
StompFrameCodec()
           
 
Method Summary
 StompFrame decode(org.jboss.netty.buffer.ChannelBuffer buffer)
           
protected  FrameHeader decodeHeader(org.jboss.netty.buffer.ChannelBuffer buffer)
           
 org.jboss.netty.buffer.ChannelBuffer encode(StompFrame frame)
           
protected  void logBytes(String name, Object o)
           
protected  org.jboss.netty.buffer.ChannelBuffer newBuffer(StompFrame frame)
           
protected  FrameHeader processHeaderLine(FrameHeader header, String line)
           
protected  org.jboss.netty.buffer.ChannelBuffer readUntil(org.jboss.netty.buffer.ChannelBuffer buffer, int len)
           
protected  org.jboss.netty.buffer.ChannelBuffer readUntilNull(org.jboss.netty.buffer.ChannelBuffer buffer)
           
protected  void writeContent(StompFrame frame, org.jboss.netty.buffer.ChannelBuffer buffer)
           
protected  void writeHeader(StompFrame frame, org.jboss.netty.buffer.ChannelBuffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final StompFrameCodec INSTANCE
Constructor Detail

StompFrameCodec

public StompFrameCodec()
Method Detail

decode

public StompFrame decode(org.jboss.netty.buffer.ChannelBuffer buffer)
                  throws Exception
Throws:
Exception

readUntilNull

protected org.jboss.netty.buffer.ChannelBuffer readUntilNull(org.jboss.netty.buffer.ChannelBuffer buffer)

readUntil

protected org.jboss.netty.buffer.ChannelBuffer readUntil(org.jboss.netty.buffer.ChannelBuffer buffer,
                                                         int len)

decodeHeader

protected FrameHeader decodeHeader(org.jboss.netty.buffer.ChannelBuffer buffer)

logBytes

protected void logBytes(String name,
                        Object o)

processHeaderLine

protected FrameHeader processHeaderLine(FrameHeader header,
                                        String line)

encode

public org.jboss.netty.buffer.ChannelBuffer encode(StompFrame frame)
                                            throws Exception
Throws:
Exception

newBuffer

protected org.jboss.netty.buffer.ChannelBuffer newBuffer(StompFrame frame)

writeHeader

protected void writeHeader(StompFrame frame,
                           org.jboss.netty.buffer.ChannelBuffer buffer)

writeContent

protected void writeContent(StompFrame frame,
                            org.jboss.netty.buffer.ChannelBuffer buffer)

Stilts 0.1.0-SNAPSHOT

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.