|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
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 |
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 |
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 JacRequest
name
- the name of the parameter
public boolean isIEUserAgent()
JacRequest
isIEUserAgent
in interface JacRequest
public String getUserAgent()
JacRequest
getUserAgent
in interface JacRequest
public String getHeader(String name)
JacRequest
getHeader
in interface JacRequest
name
- name of the header
public void setParent(JacRequest parent)
public boolean waitForResponse()
JacRequest
The thread that call this method waits until a call to
setResponse
occurs or a timeout occurs.
waitForResponse
in interface JacRequest
JacRequest.setResponse()
public void setResponse()
JacRequest
waitForResult
call.
setResponse
in interface JacRequest
JacRequest.waitForResponse()
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |