|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Convenience helper methods for sourcing and sinking resources. Implemented over INKFBasicHelper
Method Summary | |
IURRepresentation |
createIntermediateRepresentationForAspect(IURAspect aAspect,
String aMimeType)
Create a representation around one aspect that has been internally created and give it the specified mimetype. |
boolean |
delete(String aURI)
Delete a resource for the given URI |
boolean |
exists(String aURI)
Check for the existence of a resource for the given URI |
IURAspect |
fragment(IURAspect aSource,
String aFragment,
String aMimeType,
Class aAspectClass)
Apply a fragment identifier to an internally created resource. |
String |
requestNew(String aURIBase,
IURAspect aOptionalSource)
Request the creation of a new resource |
void |
sinkAspect(String aURI,
IURAspect aAspect)
Sink an aspect to the resource at a URI |
IURRepresentation |
source(String aURI)
Source a resource from its URI |
IURRepresentation |
source(String aURI,
Class aAspectClass)
Source a resource from its URI |
IURAspect |
sourceAspect(String aURI,
Class aAspectClass)
Source a specific aspect of a resource from its URI |
IURAspect |
transrept(IURAspect aSource,
Class aAspectClass)
Transrept a internally created resource into alternative aspect. |
IURAspect |
transrept(IURRepresentation aSource,
Class aAspectClass)
Transrept a internally created resource into alternative aspect. |
Methods inherited from interface org.ten60.netkernel.layer1.nkf.INKFBasicHelper |
createResponseFrom, createResponseFrom, createSubRequest, createSubRequest, getCWU, getKernelHelper, getThisRequest, isResponseSet, issueAsyncSubRequest, issueSubRequest, issueSubRequestForAspect, setCWU, setResponse |
Method Detail |
public IURRepresentation source(String aURI) throws NKFException
aURI
-
NKFException
public IURRepresentation source(String aURI, Class aAspectClass) throws NKFException
aURI
- aAspectClass
-
NKFException
public IURAspect sourceAspect(String aURI, Class aAspectClass) throws NKFException
aURI
- aAspectClass
-
NKFException
public void sinkAspect(String aURI, IURAspect aAspect) throws NKFException
aURI
- aAspect
-
NKFException
public boolean exists(String aURI) throws NKFException
NKFException
public boolean delete(String aURI) throws NKFException
NKFException
public IURAspect transrept(IURAspect aSource, Class aAspectClass) throws NKFException
aSource
- An internally generated resourceaAspectClass
- The class of the desired aspect for the resource
NKFException
- thrown if no transreptor available or transreptor failspublic IURAspect transrept(IURRepresentation aSource, Class aAspectClass) throws NKFException
aSource
- An internally generated resourceaAspectClass
- The class of the desired aspect for the resource
NKFException
- thrown if no transreptor available or transreptor failspublic String requestNew(String aURIBase, IURAspect aOptionalSource) throws NKFException
aURIBase
- A base URI that can identify which accessor to target
the request ataOptionalSource
- Optional resource aspect that the accessor can
use to seed the state of the new resource.
NKFException
- Thrown if no accessor could be located or it
didn't support the NEW operation or the failed for some other accessor
specific reason.public IURAspect fragment(IURAspect aSource, String aFragment, String aMimeType, Class aAspectClass) throws NKFException
aSource
- An internally generated resourceaFragment
- A valid fragment identifier stringaMimeType
- The mimetype of the resourceaAspectClass
- The class of the desired aspect for the resource
NKFException
- thrown if no transreptor available or transreptor failspublic IURRepresentation createIntermediateRepresentationForAspect(IURAspect aAspect, String aMimeType)
aAspect
- the single aspect it should containaMimeType
- the mimetype of the representation
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |