NetKernel APIs


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

java.lang.Object
  extended byorg.ten60.netkernel.layer1.nkf.impl.NKFFragmentorImpl
All Implemented Interfaces:
IFragmentor, IURComponent
Direct Known Subclasses:
MultipartFragmentor

public abstract class NKFFragmentorImpl
extends Object
implements IFragmentor

NKF based Fragmentor implementation base class


Constructor Summary
NKFFragmentorImpl(String aURIMatch, String aMimeMatch)
           
 
Method Summary
 void destroy()
          This method is called to notify the component that it will not be used again.
protected abstract  void fragment(INKFConvenienceHelper context)
          Implement this method to provide the resultant representation on the response
 IURRepresentation fragment(URRequest aRequest)
          Adapts the kernel API into the NKF API and calls the fragment(INKFConvenienceHelper context) method.
 ModuleDefinition getModule()
           
protected  Scheduler getScheduler()
           
 void initialise(Container aContainer, ModuleDefinition aModule)
          This method is called to put the component into action and ready for use.
 boolean matches(URRequest aRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NKFFragmentorImpl

public NKFFragmentorImpl(String aURIMatch,
                         String aMimeMatch)
Method Detail

initialise

public void initialise(Container aContainer,
                       ModuleDefinition aModule)
Description copied from interface: IURComponent
This method is called to put the component into action and ready for use. No service calls will be make until this method completes

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

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 ModuleDefinition getModule()
Specified by:
getModule in interface IFragmentor

getScheduler

protected Scheduler getScheduler()

matches

public boolean matches(URRequest aRequest)
Specified by:
matches in interface IFragmentor

fragment

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

Specified by:
fragment in interface IFragmentor
Parameters:
aRequest -
Returns:
a fragmented representation
Throws:
NetKernelException

fragment

protected abstract void fragment(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.