NetKernel APIs


org.ten60.netkernel.layer1.transrepresentation
Class SimpleTransreptorImpl

java.lang.Object
  extended byorg.ten60.netkernel.layer1.transrepresentation.SimpleTransreptorImpl
All Implemented Interfaces:
ITransrepresentor, IURComponent
Direct Known Subclasses:
BinaryStreamToSAX, DOM2SAX, DOMXDASerializer, SAX2DOM, SAX2XmlObject, XmlObject2SAX, XmlObjectParser

public abstract class SimpleTransreptorImpl
extends Object
implements ITransrepresentor

SimpleTransreptorImpl provides implementation of ITransrepresentor with no knowledge of where it is. This provides legacy support for effectively static transreptor classes


Constructor Summary
SimpleTransreptorImpl()
           
 
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)
          initialise an transreptor with its identify, we ignore this
abstract  IURRepresentation transrepresent(IURRepresentation aFrom)
          Transrepresent the given Representation
 IURRepresentation transrepresent(IURRepresentation aFrom, URRequest aRequest)
          Adapts to legacy interface
 
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

SimpleTransreptorImpl

public SimpleTransreptorImpl()
Method Detail

initialise

public final void initialise(Container aContainer,
                             ModuleDefinition aModule)
initialise an transreptor with its identify, we ignore this

Specified by:
initialise in interface IURComponent
Parameters:
aModule - The module this transreptor operates in
aContainer - The container this transreptor operates in

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 to legacy interface

Specified by:
transrepresent in interface ITransrepresentor
Parameters:
aFrom - the representation to transrepresent
aRequest - the request which necessitated this transrepresentation
Returns:
a transrepresented representation
Throws:
NetKernelException - throw if the transrepresentation fails for any reason

transrepresent

public abstract IURRepresentation transrepresent(IURRepresentation aFrom)
                                          throws NetKernelException
Transrepresent the given Representation

Parameters:
aFrom - the representation to transrepresent
Returns:
a transrepresented representation
Throws:
NetKernelException - throw if the transrepresentation fails for any reason

NetKernel APIs


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