NetKernel APIs


org.ten60.netkernel.layer1.nkf.impl
Class NKFTransreptorImpl

java.lang.Object
  extended byorg.ten60.netkernel.layer1.nkf.impl.NKFTransreptorImpl
All Implemented Interfaces:
ITransrepresentor, IURComponent
Direct Known Subclasses:
BinaryStreamToString, BooleanSerializer, BooleanToCanonicalXML, CanonicalBooleanToBoolean, DOMXDAParser, JDOM2DOMXDA, JDOM2SAX, JDOMSerializer, NodeList2XML, NVPToXML, NVPToXMLBinaryStream, SAXToBinaryStream, StAXReaderToXXX, URIToCanonicalURI, VoidAspectToErrorTransreptor, XmlObject2DOMXDA, XmlObjectSerializer, XMLToNVP, XXX2JDOM, XXX2XmlObject, XXXToStAXReader

public abstract class NKFTransreptorImpl
extends Object
implements ITransrepresentor

NKF based Transreptor implementation base class


Constructor Summary
NKFTransreptorImpl()
           
 
Method Summary
 void destroy()
          This method is called to notify the component that it will not be used again.
 ModuleDefinition getModule()
           
 void initialise(Container aContainer, ModuleDefinition aModule)
          Initialises the transreptor with hooks to its module
protected abstract  void transrepresent(INKFConvenienceHelper context)
          Implement this method to provide the resultant representation on the response
 IURRepresentation transrepresent(IURRepresentation aFrom, URRequest aRequest)
          Adapts the kernel API into the NKF API and calls the transrepresent(INKFConvenienceHelper context) method.
 
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.representation.ITransrepresentor
supports
 

Constructor Detail

NKFTransreptorImpl

public NKFTransreptorImpl()
Method Detail

initialise

public final void initialise(Container aContainer,
                             ModuleDefinition aModule)
Initialises the transreptor with hooks to its module

Specified by:
initialise in interface IURComponent
Parameters:
aModule -
aContainer -

destroy

public void destroy()
Description copied from interface: IURComponent
This method is called to notify the component that it will not be used again. No service calls will be pending when this method is called.

Specified by:
destroy in interface IURComponent

getModule

public final ModuleDefinition getModule()
Specified by:
getModule in interface ITransrepresentor

transrepresent

public final IURRepresentation transrepresent(IURRepresentation aFrom,
                                              URRequest aRequest)
                                       throws NetKernelException
Adapts the kernel API into the NKF API and calls the transrepresent(INKFConvenienceHelper context) method.

Specified by:
transrepresent in interface ITransrepresentor
Parameters:
aFrom -
aRequest -
Returns:
a transrepresented representation
Throws:
NetKernelException

transrepresent

protected abstract void transrepresent(INKFConvenienceHelper context)
                                throws Exception
Implement this method to provide the resultant representation on the response

Parameters:
context - the full NKF context for the request
Throws:
Exception - you can throw any exception you like and it will be mapped into a NetKernelException

NetKernel APIs


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