|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INKFConvenienceHelper
Convenience helper methods for sourcing and sinking resources. Implemented over INKFBasicHelper
| Method Summary | |
|---|---|
IURRepresentation |
createIntermediateRepresentationForAspect(IURAspect aAspect,
java.lang.String aMimeType)
Create a representation around one aspect that has been internally created and give it the specified mimetype. |
boolean |
delete(java.lang.String aURI)
Delete a resource for the given URI |
boolean |
exists(java.lang.String aURI)
Check for the existence of a resource for the given URI |
IURAspect |
fragment(IURAspect aSource,
java.lang.String aFragment,
java.lang.String aMimeType,
java.lang.Class aAspectClass)
Apply a fragment identifier to an internally created resource. |
java.lang.String |
requestNew(java.lang.String aURIBase,
IURAspect aOptionalSource)
Request the creation of a new resource |
void |
sinkAspect(java.lang.String aURI,
IURAspect aAspect)
Sink an aspect to the resource at a URI |
IURRepresentation |
source(java.lang.String aURI)
Source a resource from its URI |
IURRepresentation |
source(java.lang.String aURI,
java.lang.Class aAspectClass)
Source a resource from its URI |
IURAspect |
sourceAspect(java.lang.String aURI,
java.lang.Class aAspectClass)
Source a specific aspect of a resource from its URI |
IURAspect |
transrept(IURAspect aSource,
java.lang.Class aAspectClass)
Transrept a internally created resource into alternative aspect. |
IURAspect |
transrept(IURRepresentation aSource,
java.lang.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, issueAsyncSubRequest, issueSubRequest, issueSubRequestForAspect, setCWU, setResponse |
| Method Detail |
|---|
IURRepresentation source(java.lang.String aURI)
throws NKFException
aURI -
NKFException
IURRepresentation source(java.lang.String aURI,
java.lang.Class aAspectClass)
throws NKFException
aURI - aAspectClass -
NKFException
IURAspect sourceAspect(java.lang.String aURI,
java.lang.Class aAspectClass)
throws NKFException
aURI - aAspectClass -
NKFException
void sinkAspect(java.lang.String aURI,
IURAspect aAspect)
throws NKFException
aURI - aAspect -
NKFException
boolean exists(java.lang.String aURI)
throws NKFException
NKFException
boolean delete(java.lang.String aURI)
throws NKFException
NKFException
IURAspect transrept(IURAspect aSource,
java.lang.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 fails
IURAspect transrept(IURRepresentation aSource,
java.lang.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 fails
java.lang.String requestNew(java.lang.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.
IURAspect fragment(IURAspect aSource,
java.lang.String aFragment,
java.lang.String aMimeType,
java.lang.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 fails
IURRepresentation createIntermediateRepresentationForAspect(IURAspect aAspect,
java.lang.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 | |||||||||