|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.viewerproxy.distribute.HTTPControllerClient
public class HTTPControllerClient
Client side communication with http controller server. This class works on a specific response object, simply forwarding it to the given url. Thus an instance of this class is a use-once-object. The class is supposed to be used in JSP pages in order to make sure that the remote URI is requested through the browser, so communication with the HTTPControllerServer is done to the one currently set as viewer proxy.
Constructor Summary | |
---|---|
HTTPControllerClient(javax.servlet.http.HttpServletResponse response,
javax.servlet.jsp.JspWriter out,
java.lang.String returnURL)
Make an HTTP controller client. |
Method Summary | |
---|---|
void |
changeIndex(java.util.Set<java.lang.Long> jobList,
java.lang.String label)
Change current index to work on these jobs. |
void |
clearRecordedURIs()
Clear recorded URIs and return to return URL. |
java.util.Set<java.net.URI> |
getRecordedURIs()
Write recorded URIs to response. |
java.lang.String |
getStatus(java.util.Locale locale)
Write the current status of viewerproxy to response. |
void |
startRecordingURIs()
Start recording URIs and return to return URL. |
void |
stopRecordingURIs()
Stop recording URIs and return to return URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPControllerClient(javax.servlet.http.HttpServletResponse response, javax.servlet.jsp.JspWriter out, java.lang.String returnURL)
response
- The response object to use for redirect.out
- The JspWriter used to communicate with the users.returnURL
- The URL to return to afterwards if no output is given.
This must not be null or not empty if either startRecordingURIs,
stopRecordingURIs, changeIndex or clearRecordedURIs are called.Method Detail |
---|
public void startRecordingURIs()
startRecordingURIs
in interface Controller
public void stopRecordingURIs()
stopRecordingURIs
in interface Controller
public void clearRecordedURIs()
clearRecordedURIs
in interface Controller
public java.util.Set<java.net.URI> getRecordedURIs()
getRecordedURIs
in interface Controller
public void changeIndex(java.util.Set<java.lang.Long> jobList, java.lang.String label)
changeIndex
in interface Controller
jobList
- The list of jobs.label
- An arbitrary label that will be used to indicate this indexpublic java.lang.String getStatus(java.util.Locale locale)
getStatus
in interface Controller
locale
- The locale (da, en, ...) that the response should be
written using.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |