|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.my.webproxy.beans.http.HttpManager
edu.wisc.my.webproxy.beans.http.HttpManagerImpl
public class HttpManagerImpl
This class is the implementation of the methods defined in the (@link edu.wisc.my.webproxy.beans.http.HttpManager) interface
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
HttpManagerImpl()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addCookie(org.apache.http.cookie.Cookie cookie)
Add a cookie to the HttpManager. |
void |
addCookies(org.apache.http.cookie.Cookie[] cookies)
Add an array of cookies to the HttpManager. |
void |
clearCookies()
Clear all cookies currently available in the HttpManager. |
void |
clearData()
Called at the end of a request that the component was used in. |
protected org.apache.http.conn.ClientConnectionManager |
createClientConnectionManager(javax.portlet.PortletRequest request,
org.apache.http.params.HttpParams params)
Creates a new ClientConnectionManager to be used by the HttpClient. |
protected org.apache.http.impl.client.DefaultHttpClient |
createHttpClient(javax.portlet.PortletRequest request)
Create a new THREAD SAFE HttpClient instance using the available portlet preferences. |
Request |
createRequest()
Creates an empty request object. |
Response |
doRequest(Request request)
Performs the request with the given request object. |
List<org.apache.http.cookie.Cookie> |
getCookies()
Return a list of all currently set cookies in the HttpManager. |
org.apache.http.auth.Credentials |
getCredentials()
Return the user authentication credentials. |
protected org.apache.http.impl.client.DefaultHttpClient |
getHttpClient(javax.portlet.PortletRequest request)
|
String |
getName()
Returns a displayable name for the component. |
void |
setCredentials(org.apache.http.auth.Credentials credentials)
Set the user authentication credentials. |
void |
setup(javax.portlet.PortletRequest request)
Responsible for setting up the HttpManager. |
| Methods inherited from class edu.wisc.my.webproxy.beans.http.HttpManager |
|---|
getCookieLock, setActionData, setRenderData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public HttpManagerImpl()
| Method Detail |
|---|
public Response doRequest(Request request)
throws HttpTimeoutException,
IOException
HttpManager
doRequest in class HttpManagerrequest - the (@link Request) object that contains all the necessary data to make the remote request.
HttpTimeoutException
IOExceptionpublic Request createRequest()
HttpManager
createRequest in class HttpManagerpublic String getName()
ProxyComponent
public void clearData()
ProxyComponent
public void setup(javax.portlet.PortletRequest request)
HttpManager
setup in class HttpManagerpublic void addCookie(org.apache.http.cookie.Cookie cookie)
HttpManager
addCookie in class HttpManagerpublic void addCookies(org.apache.http.cookie.Cookie[] cookies)
HttpManager
addCookies in class HttpManagerpublic void clearCookies()
HttpManager
clearCookies in class HttpManagerpublic List<org.apache.http.cookie.Cookie> getCookies()
HttpManager
getCookies in class HttpManagerpublic org.apache.http.auth.Credentials getCredentials()
HttpManager
getCredentials in class HttpManagerpublic void setCredentials(org.apache.http.auth.Credentials credentials)
HttpManager
setCredentials in class HttpManagerprotected final org.apache.http.impl.client.DefaultHttpClient getHttpClient(javax.portlet.PortletRequest request)
protected org.apache.http.impl.client.DefaultHttpClient createHttpClient(javax.portlet.PortletRequest request)
prefs -
protected org.apache.http.conn.ClientConnectionManager createClientConnectionManager(javax.portlet.PortletRequest request,
org.apache.http.params.HttpParams params)
HttpClient. Configures the SchemeRegistry
as well as setting up connection related HttpParams
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||