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 PushStrategypublic void start()
throws Exception
start in interface PushStrategyExceptionprotected void initAuthentication()
public void stop()
stop in interface PushStrategypublic void setJmsOptions(ConnectionFactoryOptions jmsOptions)
setJmsOptions in interface PushStrategypublic boolean push(ClientMessage message)
PushStrategypush in interface PushStrategyfalse if unable to connectprotected String createUri(ClientMessage message)
Copyright © 2024 The Apache Software Foundation. All rights reserved.