|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ten60.netkernel.layer1.representation.SimpleRepresentationImpl
org.ten60.netkernel.layer1.nkf.impl.NKFAccessorImpl
public abstract class NKFAccessorImpl
The main base-class for creating accessors using the NetKernel Foundation API
| Field Summary | |
|---|---|
static boolean |
NOT_SAFE_FOR_CONCURRENT_USE
|
static boolean |
SAFE_FOR_CONCURRENT_USE
|
| Fields inherited from class org.ten60.netkernel.layer1.representation.SimpleRepresentationImpl |
|---|
mMeta |
| Fields inherited from interface com.ten60.netkernel.urii.accessor.IURAccessor |
|---|
MIME_TYPE |
| Constructor Summary | |
|---|---|
NKFAccessorImpl(boolean aIsThreadSafe,
int aRequestTypes)
Creates a new instance of NKFAccessorImpl |
|
NKFAccessorImpl(int aRequestTypes)
Creates a new instance of NKFAccessorImpl |
|
NKFAccessorImpl(int aCreationCost,
boolean aIsThreadSafe,
int aRequestTypes)
Creates a new instance of NKFAccessorImpl |
|
| Method Summary | |
|---|---|
protected void |
declareThreadSafe()
|
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 |
void |
initialise(Container aContainer,
ModuleDefinition aModule)
This method is called to put the component into action and ready for use. |
abstract void |
processRequest(INKFConvenienceHelper context)
subclasses should override this method to perform work |
void |
receiveAsyncException(URResult aResult)
subclasses of this accessor cannot issue any asychronous requests |
void |
receiveAsyncResult(URResult aResult)
subclasses of this accessor cannot issue any asychronous requests |
void |
requestAsync(URRequest aRequest)
Make an asynchronous request |
| Methods inherited from class org.ten60.netkernel.layer1.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.urii.IURRepresentation |
|---|
getAspect, getAspects, getMeta, hasAspect |
| Field Detail |
|---|
public static final boolean SAFE_FOR_CONCURRENT_USE
public static final boolean NOT_SAFE_FOR_CONCURRENT_USE
| Constructor Detail |
|---|
public NKFAccessorImpl(int aCreationCost,
boolean aIsThreadSafe,
int aRequestTypes)
public NKFAccessorImpl(boolean aIsThreadSafe,
int aRequestTypes)
public NKFAccessorImpl(int aRequestTypes)
| Method Detail |
|---|
protected void declareThreadSafe()
public IURAccessorMeta getAccessorMeta()
IURAccessor
getAccessorMeta in interface IURAccessor
public void initialise(Container aContainer,
ModuleDefinition aModule)
throws NetKernelException
IURComponent
initialise in interface IURComponentNetKernelExceptionpublic void destroy()
IURComponent
destroy in interface IURComponentpublic final void receiveAsyncException(URResult aResult)
receiveAsyncException in interface IURRequestoraResult - the exception result of a previous requestpublic final void receiveAsyncResult(URResult aResult)
receiveAsyncResult in interface IURRequestoraResult - the result of a previous requestpublic final void requestAsync(URRequest aRequest)
IURRequestee
requestAsync in interface IURRequesteeaRequest - the request being made
public abstract void processRequest(INKFConvenienceHelper context)
throws java.lang.Exception
java.lang.Throwable - if anything goes wrong
java.lang.Exception
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||