|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ten60.netkernel.urrequest.URRequest
A request made by a requestor to a requestee
Field Summary | |
static int |
RQT_ALL
a request constant as a combined mask for all types |
static int |
RQT_DELETE
a request to delete a resource |
static int |
RQT_EXISTS
a request to see if a resource exists |
static int |
RQT_FRAGMENT
a request to fragment a resource |
static int |
RQT_NEW
a request to create a new resource |
static int |
RQT_SINK
a request to set the data for a URI |
static int |
RQT_SOURCE
a request to get the data for a URI |
static int |
RQT_TRANSREPRESENT
a request to transpresent data for a resource to a new aspect |
static URIdentifier |
URI_SYSTEM
our URI |
Constructor Summary | |
URRequest(URIdentifier aURI,
IURRequestor aRequestor,
IRequestorSession aSession,
IRequestorContext aContext,
int aType,
URIdentifier aCWU,
URRequest aParent,
Class aAspectClass)
Creates a new instance of URRequest |
Method Summary | |
void |
addArg(URIdentifier aURI,
IURRepresentation aArg)
Adds a pass-by-value argument to the request |
int |
argSize()
|
boolean |
equals(Object aOther)
|
IURRepresentation |
getArg(URIdentifier aURI)
|
Collection |
getArgs()
|
Class |
getAspectClass()
|
IRequestorContext |
getContext()
|
URIdentifier |
getCWU()
|
URRequest |
getParent()
|
IURRequestor |
getRequestor()
|
IRequestorSession |
getSession()
|
List |
getSuperStack()
Return the list of super-request contexts |
List |
getSuperStackClone()
Return a clone of the list of super-request contexts |
long |
getTime()
|
int |
getType()
|
URIdentifier |
getURI()
|
int |
hashCode()
|
boolean |
isSubRequest(URRequest aOther)
|
URRequest |
rewrite(URIdentifier aRewritten)
rewrite the URI of the given request |
void |
setCurrentContext(IRequestorContext aContext,
List aSuper)
sets the current context and super list of this |
void |
setRequestor(IURRequestor aRequestor)
changes the requestor of this request |
void |
setSession(IRequestorSession aSession)
changes the session for this request |
String |
toString()
human readable debug representation of the request |
static String |
typeToString(int aType)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int RQT_SOURCE
public static final int RQT_SINK
public static final int RQT_EXISTS
public static final int RQT_DELETE
public static final int RQT_NEW
public static final int RQT_TRANSREPRESENT
public static final int RQT_FRAGMENT
public static final int RQT_ALL
public static final URIdentifier URI_SYSTEM
Constructor Detail |
public URRequest(URIdentifier aURI, IURRequestor aRequestor, IRequestorSession aSession, IRequestorContext aContext, int aType, URIdentifier aCWU, URRequest aParent, Class aAspectClass)
aURI
- The URI that is the subject of the requestaRequestor
- The requestoraSession
- The session that the request is being made inaContext
- The context that the request is being made inaType
- The type of requestaCWU
- The current working uri that relative requests will be made against in the
requestaParent
- The parent request of this requestMethod Detail |
public static String typeToString(int aType)
public URIdentifier getURI()
public URIdentifier getCWU()
public IURRequestor getRequestor()
public IRequestorSession getSession()
public IRequestorContext getContext()
public int getType()
public long getTime()
public URRequest getParent()
public Class getAspectClass()
public String toString()
public URRequest rewrite(URIdentifier aRewritten)
aRewritten
- the new URI
public int argSize()
public IURRepresentation getArg(URIdentifier aURI)
public Collection getArgs()
public void addArg(URIdentifier aURI, IURRepresentation aArg)
aURI
- the URI of the argumentaArg
- the value of the argumentpublic List getSuperStack()
public List getSuperStackClone()
public boolean isSubRequest(URRequest aOther)
public void setCurrentContext(IRequestorContext aContext, List aSuper)
public void setRequestor(IURRequestor aRequestor)
public void setSession(IRequestorSession aSession)
public boolean equals(Object aOther)
public int hashCode()
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |