public abstract class HttpManager extends Object implements ProxyComponent
| Constructor and Description |
|---|
HttpManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addCookie(org.apache.http.cookie.Cookie cookie)
Add a cookie to the HttpManager.
|
abstract void |
addCookies(org.apache.http.cookie.Cookie[] cookie)
Add an array of cookies to the HttpManager.
|
abstract void |
clearCookies()
Clear all cookies currently available in the HttpManager.
|
abstract Request |
createRequest()
Creates an empty request object.
|
abstract Response |
doRequest(Request request)
Performs the request with the given request object.
|
ReadWriteLock |
getCookieLock() |
abstract List<org.apache.http.cookie.Cookie> |
getCookies()
Return a list of all currently set cookies in the HttpManager.
|
abstract org.apache.http.auth.Credentials |
getCredentials()
Return the user authentication credentials.
|
void |
setActionData(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
This method is called on a component that is being used by the portlet at the
begining of the action request it will be used in.
|
abstract void |
setCredentials(org.apache.http.auth.Credentials credentials)
Set the user authentication credentials.
|
void |
setRenderData(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
This method is called on a component that is being used by the portlet at the
begining of the render request it will be used in.
|
abstract void |
setup(javax.portlet.PortletRequest request)
Responsible for setting up the HttpManager.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearData, getNamepublic abstract Response doRequest(Request request) throws HttpTimeoutException, IOException
request - the (@link Request) object that contains all the necessary data to make the remote request.HttpTimeoutExceptionIOExceptionpublic abstract Request createRequest()
public abstract void setup(javax.portlet.PortletRequest request)
prefs - The preferences to use for configuration.public abstract void setCredentials(org.apache.http.auth.Credentials credentials)
credentials - public abstract org.apache.http.auth.Credentials getCredentials()
public abstract void addCookie(org.apache.http.cookie.Cookie cookie)
cookie - public abstract void addCookies(org.apache.http.cookie.Cookie[] cookie)
cookie - public abstract void clearCookies()
public abstract List<org.apache.http.cookie.Cookie> getCookies()
public final void setRenderData(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
ProxyComponentsetRenderData in interface ProxyComponentpublic final void setActionData(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
ProxyComponentsetActionData in interface ProxyComponentpublic final ReadWriteLock getCookieLock()
Copyright © 2016 Jasig. All Rights Reserved.