|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ten60.netkernel.layer1.nkf.impl.NKFRequestImpl
public class NKFRequestImpl
Wrapper around the construction of a sub-request from within an accessor
| Constructor Summary | |
|---|---|
NKFRequestImpl(NKFRequestReadOnlyImpl aParentRequest,
ModuleDefinition aContext,
java.lang.String aCWU)
Creates a new instance of NKFRequestImpl |
|
| Method Summary | |
|---|---|
void |
addArgument(java.lang.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(java.lang.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(java.lang.String aName,
java.lang.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. |
java.lang.Class |
getAspectClass()
|
void |
setAspectClass(java.lang.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(java.lang.String aCWU)
Sets the current working URI of the request, defaults to the same CWU as the parent request |
void |
setFragment(java.lang.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(java.lang.String aURI)
Sets the base URI of the request, defaults to nothing and using it will fail if not set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NKFRequestImpl(NKFRequestReadOnlyImpl aParentRequest,
ModuleDefinition aContext,
java.lang.String aCWU)
| Method Detail |
|---|
public void addArgument(java.lang.String aName,
java.lang.String aURI)
throws NKFException
INKFRequest
addArgument in interface INKFRequestaName - 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 resolved
public void addArgument(java.lang.String aName,
IURRepresentation aValue)
INKFRequest
addArgument in interface INKFRequest
public void addArgument(java.lang.String aName,
IURAspect aValue)
INKFRequest
addArgument in interface INKFRequestpublic void addSystemArgument(IURRepresentation aValue)
INKFRequest
addSystemArgument in interface INKFRequestpublic void addSystemArgument(IURAspect aValue)
INKFRequest
addSystemArgument in interface INKFRequestpublic void setAspectClass(java.lang.Class aAspectClass)
INKFRequest
setAspectClass in interface INKFRequestaAspectClass - if null it will default to IURAspect, and
allow any aspect to be returned (i.e. no transreption will occur)public java.lang.Class getAspectClass()
public void setCWU(java.lang.String aCWU)
INKFRequest
setCWU in interface INKFRequestpublic void setRequestType(int aType)
INKFRequest
setRequestType in interface INKFRequest
public void setURI(java.lang.String aURI)
throws NKFException
INKFRequest
setURI in interface INKFRequestNKFException - thrown if aURI is relative and cwu not setpublic void setFragment(java.lang.String aFragment)
INKFRequest
setFragment in interface INKFRequest
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||