public class HttpProxy extends Object
Constructor and Description |
---|
HttpProxy(ConnectionsPool pool,
boolean persistent_auth,
String sessionid,
boolean filter,
boolean debug) |
Modifier and Type | Method and Description |
---|---|
String |
execute(org.apache.http.client.methods.HttpUriRequest request,
List<org.apache.http.Header> headers,
Boolean last)
Executes HTTP request
|
URL |
getUrl() |
boolean |
isDebug() |
boolean |
isFilter() |
boolean |
isPersistentAuth() |
boolean |
isSetSessionid()
oVirt api sessionid to authenticate the user with
(used as SSO solution instead of username+password)
|
void |
setDebug(boolean debug) |
void |
setFilter(boolean filter) |
void |
setPersistentAuth(boolean persistentAuth) |
void |
setSessionid(String sessionid) |
void |
shutdown()
When HttpProxy instance is no longer needed, shut down
the connection manager to ensure immediate deallocation of
all system resources.
|
public HttpProxy(ConnectionsPool pool, boolean persistent_auth, String sessionid, boolean filter, boolean debug)
pool
- ConnectionsPoolpersistent_auth
- persistent autheticationsessionid
- oVirt api sessionid to authenticate the user with
(used as SSO solution instead of username+password)insecure
- flagfilter
- flagdebug
- flagpublic URL getUrl()
public String execute(org.apache.http.client.methods.HttpUriRequest request, List<org.apache.http.Header> headers, Boolean last) throws IOException, org.apache.http.client.ClientProtocolException, ServerException
request
- HTTP requestheaders
- HTTP headerslast
- flags if persistanet auth. should be closedIOException
org.apache.http.client.ClientProtocolException
ServerException
public boolean isPersistentAuth()
public void setPersistentAuth(boolean persistentAuth)
sets
- persistent authentication flagpublic void setSessionid(String sessionid)
sessionid
- oVirt api sessionid to authenticate the user with
(used as SSO solution instead of username+password)public boolean isSetSessionid()
public boolean isFilter()
public void setFilter(boolean filter)
filter
- sets Filter flagpublic boolean isDebug()
public void setDebug(boolean debug)
debug
- sets Debug flagpublic void shutdown()
Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0