Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomp.protocol
Class StompFrame

java.lang.Object
  extended by org.projectodd.stilts.stomp.protocol.StompFrame
Direct Known Subclasses:
StompContentFrame, StompControlFrame

public class StompFrame
extends Object

A base STOMP frame.

Author:
Bob McWhirter

Nested Class Summary
static class StompFrame.Command
           
static class StompFrame.Header
           
static class StompFrame.Version
           
 
Constructor Summary
StompFrame(FrameHeader header)
           
StompFrame(StompFrame.Command command)
          Create a new outbound frame.
StompFrame(StompFrame.Command command, Headers headers)
           
 
Method Summary
 StompFrame.Command getCommand()
           
 String getHeader(String name)
           
 Set<String> getHeaderNames()
           
 Headers getHeaders()
           
 void setHeader(String name, String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StompFrame

public StompFrame(StompFrame.Command command)
Create a new outbound frame.

Parameters:
command -

StompFrame

public StompFrame(StompFrame.Command command,
                  Headers headers)

StompFrame

public StompFrame(FrameHeader header)
Method Detail

getCommand

public StompFrame.Command getCommand()

getHeader

public String getHeader(String name)

setHeader

public void setHeader(String name,
                      String value)

getHeaderNames

public Set<String> getHeaderNames()

getHeaders

public Headers getHeaders()

toString

public String toString()
Overrides:
toString in class Object

Stilts 0.1.0-SNAPSHOT

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