|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Wrapper around the construction of a sub-request from within an accessor
Method Summary | |
void |
addArgument(String aName,
IURAspect aValue)
Adds a named pass-by-value argument to the request from an aspect which has been created from internal processing of the accessor. |
void |
addArgument(String aName,
IURRepresentation aValue)
Adds a named pass-by-value argument to the request (a unique internal URI will be dynamically generated for the argument). |
void |
addArgument(String aName,
String aURI)
Adds a named pass-by-reference argument to the request. |
void |
addSystemArgument(IURAspect aValue)
Adds a system argument (for use in transrept and sink requests. |
void |
addSystemArgument(IURRepresentation aValue)
Adds a system argument (for use in transrept and sink requests. |
void |
setAspectClass(Class aAspectClass)
Sets the class of aspect that is expected as a response to the request, will default to IURAspect which is the baseclass of all aspects and will allow anything to be returned |
void |
setCWU(String aCWU)
Sets the current working URI of the request, defaults to the same CWU as the parent request |
void |
setFragment(String aFragment)
Set a fragment identifier on to the request URI |
void |
setRequestType(int aType)
Sets the type of the request, defaults to RQT_SOURCE |
void |
setURI(String aURI)
Sets the base URI of the request, defaults to nothing and using it will fail if not set. |
Method Detail |
public void setRequestType(int aType)
aType
- public void setURI(String aURI) throws NKFException
aURI
-
NKFException
- thrown if aURI is relative and cwu not setpublic void setCWU(String aCWU)
aCWU
-
NKFException
- thrown if uri is relative and cannot be resolvedpublic void setAspectClass(Class aAspectClass)
aAspectClass
- if null it will default to IURAspect, and
allow any aspect to be returned (i.e. no transreption will occur)public void addArgument(String aName, String aURI) throws NKFException
aName
- the name of the argumentaURI
- the URI of the argument, if this is relative it
will be resolved
NKFException
- thrown if relative URI cannot be resolvedpublic void addArgument(String aName, IURRepresentation aValue)
aName
- aValue
- public void addArgument(String aName, IURAspect aValue)
aName
- aValue
- public void addSystemArgument(IURRepresentation aValue)
aValue
- public void addSystemArgument(IURAspect aValue)
aValue
- public void setFragment(String aFragment)
aFragment
-
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |