NetKernel APIs


org.ten60.netkernel.layer1.transrepresentation
Class VoidAspectToErrorTransreptor

java.lang.Object
  extended byorg.ten60.netkernel.layer1.nkf.impl.NKFTransreptorImpl
      extended byorg.ten60.netkernel.layer1.transrepresentation.VoidAspectToErrorTransreptor
All Implemented Interfaces:
ITransrepresentor, IURComponent

public class VoidAspectToErrorTransreptor
extends NKFTransreptorImpl

A catch all VoidAspect to XXXX Transreptor - you can't convert nothing into something! Try to be informative about why this has happened.


Constructor Summary
VoidAspectToErrorTransreptor()
           
 
Method Summary
 boolean supports(IURRepresentation aFrom, Class aTo)
          Returns true if the given representation can be transrepresented using this transreptor to the given interface
protected  void transrepresent(INKFConvenienceHelper context)
          Implement this method to provide the resultant representation on the response
 
Methods inherited from class org.ten60.netkernel.layer1.nkf.impl.NKFTransreptorImpl
destroy, getModule, initialise, transrepresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoidAspectToErrorTransreptor

public VoidAspectToErrorTransreptor()
Method Detail

supports

public boolean supports(IURRepresentation aFrom,
                        Class aTo)
Description copied from interface: ITransrepresentor
Returns true if the given representation can be transrepresented using this transreptor to the given interface

Parameters:
aFrom - the representation to transrepresent
aTo - the interface we want a new aspect to implement

transrepresent

protected void transrepresent(INKFConvenienceHelper context)
                       throws Exception
Description copied from class: NKFTransreptorImpl
Implement this method to provide the resultant representation on the response

Specified by:
transrepresent in class NKFTransreptorImpl
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.