Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomp
Class DefaultStompMessage

java.lang.Object
  extended by org.projectodd.stilts.stomp.DefaultStompMessage
All Implemented Interfaces:
StompMessage

public class DefaultStompMessage
extends Object
implements StompMessage


Constructor Summary
DefaultStompMessage()
           
DefaultStompMessage(Headers headers, org.jboss.netty.buffer.ChannelBuffer content)
           
DefaultStompMessage(Headers headers, org.jboss.netty.buffer.ChannelBuffer content, boolean isError)
           
DefaultStompMessage(Headers headers, String content)
           
DefaultStompMessage(Headers headers, String content, boolean isError)
           
 
Method Summary
 void ack()
           
 void ack(String transactionId)
           
 StompMessage duplicate()
           
 org.jboss.netty.buffer.ChannelBuffer getContent()
           
 String getContentAsString()
           
 String getContentType()
           
 String getDestination()
           
 Headers getHeaders()
           
 String getId()
           
 boolean isError()
           
 void nack()
           
 void nack(String transactionId)
           
 void setContent(org.jboss.netty.buffer.ChannelBuffer content)
           
 void setContentAsString(String content)
           
 void setContentType(String contentType)
           
 void setDestination(String destination)
           
 void setError(boolean isError)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultStompMessage

public DefaultStompMessage()

DefaultStompMessage

public DefaultStompMessage(Headers headers,
                           org.jboss.netty.buffer.ChannelBuffer content)

DefaultStompMessage

public DefaultStompMessage(Headers headers,
                           String content)

DefaultStompMessage

public DefaultStompMessage(Headers headers,
                           String content,
                           boolean isError)

DefaultStompMessage

public DefaultStompMessage(Headers headers,
                           org.jboss.netty.buffer.ChannelBuffer content,
                           boolean isError)
Method Detail

getId

public String getId()
Specified by:
getId in interface StompMessage

setError

public void setError(boolean isError)

isError

public boolean isError()
Specified by:
isError in interface StompMessage

getDestination

public String getDestination()
Specified by:
getDestination in interface StompMessage

setDestination

public void setDestination(String destination)
Specified by:
setDestination in interface StompMessage

getContentType

public String getContentType()
Specified by:
getContentType in interface StompMessage

setContentType

public void setContentType(String contentType)
Specified by:
setContentType in interface StompMessage

getHeaders

public Headers getHeaders()
Specified by:
getHeaders in interface StompMessage

setContent

public void setContent(org.jboss.netty.buffer.ChannelBuffer content)
Specified by:
setContent in interface StompMessage

getContent

public org.jboss.netty.buffer.ChannelBuffer getContent()
Specified by:
getContent in interface StompMessage

getContentAsString

public String getContentAsString()
Specified by:
getContentAsString in interface StompMessage

setContentAsString

public void setContentAsString(String content)
Specified by:
setContentAsString in interface StompMessage

toString

public String toString()
Overrides:
toString in class Object

ack

public void ack()
         throws StompException
Specified by:
ack in interface StompMessage
Throws:
StompException

ack

public void ack(String transactionId)
         throws StompException
Specified by:
ack in interface StompMessage
Throws:
StompException

nack

public void nack()
          throws StompException
Specified by:
nack in interface StompMessage
Throws:
StompException

nack

public void nack(String transactionId)
          throws StompException
Specified by:
nack in interface StompMessage
Throws:
StompException

duplicate

public StompMessage duplicate()
Specified by:
duplicate in interface StompMessage

Stilts 0.1.0-SNAPSHOT

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