|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ten60.netkernel.layer1.nkf.impl.NKFFragmentorImpl
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 |
public NKFFragmentorImpl(String aURIMatch, String aMimeMatch)
Method Detail |
public void initialise(Container aContainer, ModuleDefinition aModule)
IURComponent
initialise
in interface IURComponent
aContainer
- aModule
- public void destroy()
IURComponent
destroy
in interface IURComponent
public ModuleDefinition getModule()
getModule
in interface IFragmentor
protected Scheduler getScheduler()
public boolean matches(URRequest aRequest)
matches
in interface IFragmentor
public final IURRepresentation fragment(URRequest aRequest) throws NetKernelException
fragment
in interface IFragmentor
aRequest
-
NetKernelException
protected abstract void fragment(INKFConvenienceHelper context) throws Exception
context
- the full NKF context for the request
Exception
- you can throw any exception you like and it will be mapped
into a NetKernelException
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |