NetKernel APIs


org.ten60.netkernel.layer1.accessor
Class NKFWormholeAccessor

java.lang.Object
  extended by org.ten60.netkernel.layer1.representation.SimpleRepresentationImpl
      extended by org.ten60.netkernel.layer1.nkf.impl.NKFAccessorImpl
          extended by org.ten60.netkernel.layer1.accessor.NKFWormholeAccessor
All Implemented Interfaces:
IURAccessor, IURAspect, IURComponent, IURRepresentation, IURRequestee, IURRequestor, INKFAsyncRequestListener

public class NKFWormholeAccessor
extends NKFAccessorImpl
implements INKFAsyncRequestListener

NKFWormholeAccessor


Field Summary
static java.lang.String ARG_MODULE
           
static java.lang.String ARG_RESOURCE
           
static java.lang.String ARG_VERSION
           
 
Fields inherited from class org.ten60.netkernel.layer1.nkf.impl.NKFAccessorImpl
NOT_SAFE_FOR_CONCURRENT_USE, 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
NKFWormholeAccessor()
          Creates a new instance of NKFWormholeAccessor
 
Method Summary
 void processRequest(INKFConvenienceHelper context)
          subclasses should override this method to perform work
 void receiveException(NKFException aException, INKFRequest aRequest, INKFConvenienceHelper context)
          Called when a request fails.
 void receiveRepresentation(IURRepresentation aRepresentation, INKFRequest aRequest, INKFConvenienceHelper context)
          Called when the result of a request is made available.
 
Methods inherited from class org.ten60.netkernel.layer1.nkf.impl.NKFAccessorImpl
declareThreadSafe, destroy, getAccessorMeta, initialise, receiveAsyncException, receiveAsyncResult, requestAsync
 
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

ARG_RESOURCE

public static final java.lang.String ARG_RESOURCE
See Also:
Constant Field Values

ARG_MODULE

public static final java.lang.String ARG_MODULE
See Also:
Constant Field Values

ARG_VERSION

public static final java.lang.String ARG_VERSION
See Also:
Constant Field Values
Constructor Detail

NKFWormholeAccessor

public NKFWormholeAccessor()
Creates a new instance of NKFWormholeAccessor

Method Detail

processRequest

public void processRequest(INKFConvenienceHelper context)
                    throws java.lang.Exception
Description copied from class: NKFAccessorImpl
subclasses should override this method to perform work

Specified by:
processRequest in class NKFAccessorImpl
Throws:
java.lang.Exception

receiveException

public void receiveException(NKFException aException,
                             INKFRequest aRequest,
                             INKFConvenienceHelper context)
                      throws java.lang.Exception
Description copied from interface: INKFAsyncRequestListener
Called when a request fails. This method will be called only once per request issued. To cause an exception to propagate to the calling service this method must re-throw the exception.

Specified by:
receiveException in interface INKFAsyncRequestListener
Parameters:
aException - An exception issuing the request
aRequest - The request that was issued
context - The context that the request was issued in
Throws:
java.lang.Exception

receiveRepresentation

public void receiveRepresentation(IURRepresentation aRepresentation,
                                  INKFRequest aRequest,
                                  INKFConvenienceHelper context)
                           throws java.lang.Exception
Description copied from interface: INKFAsyncRequestListener
Called when the result of a request is made available. This method will be called only once per request issued. It is important for this method to call context.setResponse(null) if it wishes for the request not to be satisfied upon completion of the method.

Specified by:
receiveRepresentation in interface INKFAsyncRequestListener
Parameters:
aRepresentation - The representation that was returned as a result of the request.
aRequest - The request that was issued
context - The context that the request was issued in
Throws:
java.lang.Exception

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.