|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.objectweb.jac.aspects.gui.web.AbstractJacRequest
This class represents a multi-part HttpRequest.
| Field Summary | |
protected static long |
DEFAULT_REQUEST_TIMEOUT
|
protected Semaphore |
semaphore
The semaphore that blocks the requesting thread until the response is available. |
| Constructor Summary | |
AbstractJacRequest(HttpServletRequest servletRequest)
|
|
| Method Summary | |
String |
getHeader(String name)
Gets the value of a header. |
abstract Object |
getParameter(String name)
Returns a parameter. |
String |
getUserAgent()
Returns the user agent of this request |
boolean |
isIEUserAgent()
Tells if the user agent of the request is Internet Explorer |
void |
setParent(JacRequest parent)
|
void |
setResponse()
Unblock a thread that was blocked by a waitForResult call. |
boolean |
userAgentMatch(String s)
Tells if the user agent contains a given string |
boolean |
waitForResponse()
Makes the current requesting thread block and wait until the response is available. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.jac.aspects.gui.web.JacRequest |
contains, getParameters |
| Field Detail |
protected transient Semaphore semaphore
protected static final long DEFAULT_REQUEST_TIMEOUT
| Constructor Detail |
public AbstractJacRequest(HttpServletRequest servletRequest)
| Method Detail |
public abstract Object getParameter(String name)
JacRequest
getParameter in interface JacRequestname - the name of the parameter
public boolean isIEUserAgent()
JacRequest
isIEUserAgent in interface JacRequestJacRequest.userAgentMatch(String)public String getUserAgent()
JacRequest
getUserAgent in interface JacRequestpublic boolean userAgentMatch(String s)
JacRequest
userAgentMatch in interface JacRequests - string to be searched in user agent
public String getHeader(String name)
JacRequest
getHeader in interface JacRequestname - name of the header
public void setParent(JacRequest parent)
public boolean waitForResponse()
JacRequestThe thread that call this method waits until a call to
setResponse occurs or a timeout occurs.
waitForResponse in interface JacRequestJacRequest.setResponse()public void setResponse()
JacRequestwaitForResult call.
setResponse in interface JacRequestJacRequest.waitForResponse()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||