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 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 |
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
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 boolean push(ClientMessage message)
PushStrategypush in interface PushStrategyfalse if unable to connectprotected String createUri(ClientMessage message)
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.