Package org.symphonyoss.s2.canon.runtime
Class PathHandler<T>
- java.lang.Object
-
- org.symphonyoss.s2.canon.runtime.PathHandler<T>
-
- All Implemented Interfaces:
IEntityHandler
- Direct Known Subclasses:
AsyncPathHandler
public abstract class PathHandler<T> extends Object implements IEntityHandler
-
-
Constructor Summary
Constructors Constructor Description PathHandler(IRequestAuthenticator<T> authenticator, int variableCnt, String[] parts)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetPartsLength()booleanhandle(RequestContext context)protected abstract voidhandle(T canonAuth, RequestContext context, List<String> variables)voidunsupportedMethod(T canonAuth, RequestContext 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.IEntityHandler
getPath
-
-
-
-
Constructor Detail
-
PathHandler
public PathHandler(@Nullable IRequestAuthenticator<T> authenticator, int variableCnt, String[] parts)
-
-
Method Detail
-
handle
public boolean handle(RequestContext context) throws IOException
- Specified by:
handlein interfaceIEntityHandler- Throws:
IOException
-
getPartsLength
public int getPartsLength()
- Specified by:
getPartsLengthin interfaceIEntityHandler
-
handle
protected abstract void handle(T canonAuth, RequestContext context, List<String> variables) throws IOException, CanonException
- Throws:
IOExceptionCanonException
-
unsupportedMethod
public void unsupportedMethod(T canonAuth, RequestContext 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.
-
-