|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ten60.netkernel.urii.representation.SimpleRepresentationImpl
com.ten60.netkernel.urii.accessor.AccessorImpl
Skeletal implementation of IURAccessor for an NetKernel inbuild accessors
Field Summary |
Fields inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl |
mMeta |
Fields inherited from interface com.ten60.netkernel.urii.accessor.IURAccessor |
MIME_TYPE |
Constructor Summary | |
AccessorImpl(IURAccessorMeta aMeta)
Construct a new AccessorImpl |
Method Summary | |
void |
destroy()
This method is called to notify the component that it will not be used again. |
IURAccessorMeta |
getAccessorMeta()
Return the Meta for this accessor |
protected Container |
getContainer()
Return our container |
protected ModuleDefinition |
getModule()
Return our module |
void |
initialise(Container aContainer,
ModuleDefinition aModule)
Initialise the accessor |
protected void |
issueRequest(URRequest aRequest)
issue an asychronous request |
protected void |
issueResult(URRequest aRequest,
IURRepresentation aResource,
boolean aException)
return result of our invocation |
protected URResult |
issueSynchRequest(URRequest aRequest)
issue a synchronous request |
void |
receiveAsyncException(URResult aResult)
default exception handling is to add exception frame and re-throw |
void |
receiveAsyncResult(URResult aResult)
This callback must be overriden if we make asynchronous requests so at to receive the results |
protected IURRepresentation |
transrepresent(IURRepresentation aFrom,
URIdentifier aFromURI,
Class aToClass,
URRequest aOriginalRequest)
issue a synchronous transrepresentation request |
Methods inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl |
getAspect, getAspects, getMeta, hasAspect |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ten60.netkernel.urrequest.IURRequestee |
requestAsync |
Methods inherited from interface com.ten60.netkernel.urii.IURRepresentation |
getAspect, getAspects, getMeta, hasAspect |
Constructor Detail |
public AccessorImpl(IURAccessorMeta aMeta)
aMeta
- the meta we shoudl haveMethod Detail |
public void initialise(Container aContainer, ModuleDefinition aModule)
initialise
in interface IURComponent
aContainer
- aModule
- public void destroy()
IURComponent
destroy
in interface IURComponent
public IURAccessorMeta getAccessorMeta()
IURAccessor
getAccessorMeta
in interface IURAccessor
protected ModuleDefinition getModule()
protected Container getContainer()
public void receiveAsyncResult(URResult aResult)
receiveAsyncResult
in interface IURRequestor
aResult
- the result of a previous requestpublic void receiveAsyncException(URResult aResult)
receiveAsyncException
in interface IURRequestor
aResult
- the exception result of a previous requestprotected void issueResult(URRequest aRequest, IURRepresentation aResource, boolean aException)
aRequest
- the request we are replying toaResource
- the data we are providingaException
- true if result is exception, false if it is fineprotected void issueRequest(URRequest aRequest)
protected URResult issueSynchRequest(URRequest aRequest) throws NetKernelException, InterruptedException
NetKernelException
InterruptedException
protected IURRepresentation transrepresent(IURRepresentation aFrom, URIdentifier aFromURI, Class aToClass, URRequest aOriginalRequest) throws NetKernelException
aFrom
- The representation we want to transrepresentaToClass
- The class we want to transrepresent toaOriginalRequest
- The parent request that caused us to want to make this request
NetKernelException
- Thrown if the transrepresentation fails for any reason
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |