|
||||||||||
| 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
public abstract class HttpManager
This interface is what the portlet uses to make requests. The implementation will be responsible for using the data provided in the Request interface to make the remote request and construct a Response object with the results.
| Constructor Summary | |
|---|---|
HttpManager()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.wisc.my.webproxy.beans.config.ProxyComponent |
|---|
clearData, getName |
| Constructor Detail |
|---|
public HttpManager()
| Method Detail |
|---|
public abstract Response doRequest(Request request)
throws HttpTimeoutException,
IOException
request - the (@link Request) object that contains all the necessary data to make the remote request.
HttpTimeoutException
IOExceptionpublic 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)
ProxyComponent
setRenderData in interface ProxyComponent
public final void setActionData(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
ProxyComponent
setActionData in interface ProxyComponentpublic final ReadWriteLock getCookieLock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||