public class JerseyClient extends Object implements HttpClient
Modifier and Type | Field and Description |
---|---|
protected boolean |
alive |
protected String |
basePath |
protected String |
baseUrl |
protected javax.ws.rs.client.Client |
client |
protected String |
hostname |
protected boolean |
https |
protected String |
name |
protected String |
password |
protected int |
port |
protected boolean |
selfSignedCerts |
protected String |
userName |
factory
Constructor and Description |
---|
JerseyClient(String name,
boolean https,
boolean selfSignedCerts,
String hostname,
int port,
String basePath,
String userName,
String password) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
get() |
javax.ws.rs.core.Response |
get(String path) |
String |
getBasePath() |
String |
getBaseUrl() |
String |
getHostname() |
String |
getName() |
String |
getPassword() |
int |
getPort() |
String |
getUserName() |
boolean |
isAlive() |
boolean |
isHttps() |
boolean |
isSelfSignedCerts() |
void |
shutdown() |
boolean |
start() |
boolean |
stop() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBody
protected final String name
protected final boolean https
protected final boolean selfSignedCerts
protected final String hostname
protected final int port
protected final String basePath
protected final String userName
protected final String password
protected final javax.ws.rs.client.Client client
protected final String baseUrl
protected boolean alive
public javax.ws.rs.core.Response get(String path)
get
in interface HttpClient
public javax.ws.rs.core.Response get()
get
in interface HttpClient
public boolean start() throws IllegalStateException
start
in interface org.openecomp.policy.drools.properties.Startable
IllegalStateException
public boolean stop() throws IllegalStateException
stop
in interface org.openecomp.policy.drools.properties.Startable
IllegalStateException
public void shutdown() throws IllegalStateException
shutdown
in interface org.openecomp.policy.drools.properties.Startable
IllegalStateException
public boolean isAlive()
isAlive
in interface org.openecomp.policy.drools.properties.Startable
public String getName()
getName
in interface HttpClient
public boolean isHttps()
isHttps
in interface HttpClient
public boolean isSelfSignedCerts()
isSelfSignedCerts
in interface HttpClient
public String getHostname()
getHostname
in interface HttpClient
public int getPort()
getPort
in interface HttpClient
public String getBasePath()
getBasePath
in interface HttpClient
public String getUserName()
getUserName
in interface HttpClient
public String getPassword()
getPassword
in interface HttpClient
public String getBaseUrl()
getBaseUrl
in interface HttpClient
Copyright © 2018. All rights reserved.