Package org.symphonyoss.s2.canon.runtime
Class AbstractPathHandler<T,C extends IRequestContext>
- java.lang.Object
-
- org.symphonyoss.s2.canon.runtime.AbstractPathHandler<T,C>
-
- All Implemented Interfaces:
IAbstractEntityHandler
- Direct Known Subclasses:
AsyncPathHandler,PathHandler
public abstract class AbstractPathHandler<T,C extends IRequestContext> extends Object implements IAbstractEntityHandler
-
-
Constructor Summary
Constructors Constructor Description AbstractPathHandler(IRequestAuthenticator<T> authenticator, int variableCnt, String[] parts)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetPartsLength()booleanhandle(C context)protected abstract voidhandle(T canonAuth, C context, List<String> variables)voidunsupportedMethod(T canonAuth, IRequestContext context)Called by generated servlets for unsupported methods.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.symphonyoss.s2.canon.runtime.IAbstractEntityHandler
getPath
-
-
-
-
Constructor Detail
-
AbstractPathHandler
public AbstractPathHandler(@Nullable IRequestAuthenticator<T> authenticator, int variableCnt, String[] parts)
-
-
Method Detail
-
handle
public boolean handle(C context) throws IOException
- Throws:
IOException
-
getPartsLength
public int getPartsLength()
- Specified by:
getPartsLengthin interfaceIAbstractEntityHandler
-
handle
protected abstract void handle(T canonAuth, C context, List<String> variables) throws IOException, CanonException
- Throws:
IOExceptionCanonException
-
unsupportedMethod
public void unsupportedMethod(T canonAuth, IRequestContext context) throws IOException
Called by generated servlets for unsupported methods.- Parameters:
canonAuth- The token produced by the authentication method.context- The request context which contains servlet request, response etc.- Throws:
IOException- If the response cannot be sent.
-
-