Package com.enonic.xp.portal.handler
Class EndpointHandler
- java.lang.Object
-
- com.enonic.xp.web.handler.BaseWebHandler
-
- com.enonic.xp.portal.handler.EndpointHandler
-
- All Implemented Interfaces:
WebHandler
public abstract class EndpointHandler extends BaseWebHandler
-
-
Field Summary
-
Fields inherited from interface com.enonic.xp.web.handler.WebHandler
MAX_ORDER, MIN_ORDER
-
-
Constructor Summary
Constructors Constructor Description EndpointHandler(java.lang.String endpointType)
EndpointHandler(java.util.EnumSet<HttpMethod> methodsAllowed, java.lang.String endpointType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(WebRequest req)
protected java.lang.String
findPreRestPath(WebRequest req)
protected java.lang.String
findRestPath(WebRequest req)
protected boolean
isSiteBase(WebRequest req)
-
Methods inherited from class com.enonic.xp.web.handler.BaseWebHandler
addTraceInfo, badRequest, doHandle, getBodyLength, getOrder, getSize, handle, methodNotAllowed, notFound
-
-
-
-
Constructor Detail
-
EndpointHandler
public EndpointHandler(java.lang.String endpointType)
-
EndpointHandler
public EndpointHandler(java.util.EnumSet<HttpMethod> methodsAllowed, java.lang.String endpointType)
-
-
Method Detail
-
canHandle
public boolean canHandle(WebRequest req)
- Specified by:
canHandle
in classBaseWebHandler
-
findPreRestPath
protected java.lang.String findPreRestPath(WebRequest req)
-
findRestPath
protected final java.lang.String findRestPath(WebRequest req)
-
isSiteBase
protected boolean isSiteBase(WebRequest req)
-
-