org.hornetq.rest.queue.push
Class UriStrategy
java.lang.Object
org.hornetq.rest.queue.push.UriStrategy
- All Implemented Interfaces:
- PushStrategy
- Direct Known Subclasses:
- UriTemplateStrategy
public class UriStrategy
- extends java.lang.Object
- implements PushStrategy
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
client
protected org.apache.commons.httpclient.HttpClient client
executor
protected org.jboss.resteasy.client.core.executors.ApacheHttpClientExecutor executor
registration
protected PushRegistration registration
targetUri
protected javax.ws.rs.core.UriBuilder targetUri
method
protected java.lang.String method
contentType
protected java.lang.String contentType
UriStrategy
public UriStrategy()
setRegistration
public void setRegistration(PushRegistration reg)
- Specified by:
setRegistration in interface PushStrategy
start
public void start()
throws java.lang.Exception
- Specified by:
start in interface PushStrategy
- Throws:
java.lang.Exception
initAuthentication
protected void initAuthentication()
stop
public void stop()
- Specified by:
stop in interface PushStrategy
push
public boolean push(org.hornetq.api.core.client.ClientMessage message)
- Description copied from interface:
PushStrategy
- Return false if unable to connect. Push consumer may be disabled if configured to do so when unable to connect.
Throw an exception if the message sent was unaccepted by the receiver. Hornetq's retry and dead letter logic
will take over from there.
- Specified by:
push in interface PushStrategy
- Returns:
createUri
protected java.lang.String createUri(org.hornetq.api.core.client.ClientMessage message)
Copyright © 2011. All Rights Reserved.