public class UriStrategy extends Object implements PushStrategy
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.client.HttpClient |
client |
protected String |
contentType |
protected org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor |
executor |
protected ConnectionFactoryOptions |
jmsOptions |
protected org.apache.http.protocol.BasicHttpContext |
localContext |
protected String |
method |
protected PushRegistration |
registration |
protected javax.ws.rs.core.UriBuilder |
targetUri |
Modifier and Type | Method and Description |
---|---|
protected String |
createUri(ClientMessage message) |
protected void |
initAuthentication() |
boolean |
push(ClientMessage message)
Return false if unable to connect.
|
void |
setJmsOptions(ConnectionFactoryOptions jmsOptions) |
void |
setRegistration(PushRegistration reg) |
void |
start() |
void |
stop() |
protected org.apache.http.client.HttpClient client
protected org.apache.http.protocol.BasicHttpContext localContext
protected org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor executor
protected PushRegistration registration
protected javax.ws.rs.core.UriBuilder targetUri
protected String method
protected String contentType
protected ConnectionFactoryOptions jmsOptions
public void setRegistration(PushRegistration reg)
setRegistration
in interface PushStrategy
public void start() throws Exception
start
in interface PushStrategy
Exception
protected void initAuthentication()
public void stop()
stop
in interface PushStrategy
public void setJmsOptions(ConnectionFactoryOptions jmsOptions)
setJmsOptions
in interface PushStrategy
public boolean push(ClientMessage message)
PushStrategy
push
in interface PushStrategy
false
if unable to connectprotected String createUri(ClientMessage message)
Copyright © 2016 The Apache Software Foundation. All rights reserved.