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(String endpointType)EndpointHandler(EnumSet<HttpMethod> methodsAllowed, String endpointType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(WebRequest req)protected StringfindPreRestPath(WebRequest req)protected StringfindRestPath(WebRequest req)protected booleanisSiteBase(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(String endpointType)
-
EndpointHandler
public EndpointHandler(EnumSet<HttpMethod> methodsAllowed, String endpointType)
-
-
Method Detail
-
canHandle
public boolean canHandle(WebRequest req)
- Specified by:
canHandlein classBaseWebHandler
-
findPreRestPath
protected String findPreRestPath(WebRequest req)
-
findRestPath
protected final String findRestPath(WebRequest req)
-
isSiteBase
protected boolean isSiteBase(WebRequest req)
-
-