org.hornetq.rest.queue
Class PostMessageDupsOk

java.lang.Object
  extended by org.hornetq.rest.queue.PostMessage
      extended by org.hornetq.rest.queue.PostMessageDupsOk

public class PostMessageDupsOk
extends PostMessage

Implements simple "create" link. Returns 201 with Location of created resource as per HTTP

Version:
$Revision: 1 $
Author:
Bill Burke

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hornetq.rest.queue.PostMessage
PostMessage.Pooled
 
Field Summary
 
Fields inherited from class org.hornetq.rest.queue.PostMessage
defaultDurable, destination, pool, poolSize, producerTimeToLive, serviceManager, sessionFactory
 
Constructor Summary
PostMessageDupsOk()
           
 
Method Summary
 javax.ws.rs.core.Response create(javax.ws.rs.core.HttpHeaders headers, java.lang.Boolean durable, java.lang.Long ttl, java.lang.Long expiration, java.lang.Integer priority, javax.ws.rs.core.UriInfo uriInfo, byte[] body)
           
 void publish(javax.ws.rs.core.HttpHeaders headers, byte[] body, boolean durable, java.lang.Long ttl, java.lang.Long expiration, java.lang.Integer priority)
           
 
Methods inherited from class org.hornetq.rest.queue.PostMessage
addPooled, cleanup, createHornetQMessage, generateDupId, getDestination, getPooled, getPoolSize, getProducerTimeToLive, getServiceManager, getSessionFactory, init, isDefaultDurable, postWithId, publish, putWithId, setDefaultDurable, setDestination, setPoolSize, setProducerTimeToLive, setServiceManager, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostMessageDupsOk

public PostMessageDupsOk()
Method Detail

publish

public void publish(javax.ws.rs.core.HttpHeaders headers,
                    byte[] body,
                    boolean durable,
                    java.lang.Long ttl,
                    java.lang.Long expiration,
                    java.lang.Integer priority)
             throws java.lang.Exception
Throws:
java.lang.Exception

create

public javax.ws.rs.core.Response create(@Context
                                        javax.ws.rs.core.HttpHeaders headers,
                                        java.lang.Boolean durable,
                                        java.lang.Long ttl,
                                        java.lang.Long expiration,
                                        java.lang.Integer priority,
                                        @Context
                                        javax.ws.rs.core.UriInfo uriInfo,
                                        byte[] body)


Copyright © 2011. All Rights Reserved.