Class RestUrlHandlerImpl
- java.lang.Object
-
- org.webswing.server.base.AbstractUrlHandler
-
- org.webswing.server.services.rest.RestUrlHandlerImpl
-
- All Implemented Interfaces:
org.glassfish.jersey.server.spi.Container,UrlHandler,RestUrlHandler,SecurableService
public class RestUrlHandlerImpl extends AbstractUrlHandler implements org.glassfish.jersey.server.spi.Container, RestUrlHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestUrlHandlerImpl.WsExceptionMapper
-
Constructor Summary
Constructors Constructor Description RestUrlHandlerImpl(UrlHandler parent, org.glassfish.jersey.internal.inject.AbstractBinder binder, Class... resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()org.glassfish.jersey.server.ApplicationHandlergetApplicationHandler()org.glassfish.jersey.server.ResourceConfiggetConfiguration()protected StringgetPath()voidinit()voidreload()voidreload(org.glassfish.jersey.server.ResourceConfig configuration)booleanserve(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)-
Methods inherited from class org.webswing.server.base.AbstractUrlHandler
checkMasterPermission, checkPermission, checkPermissionLocalOrMaster, getFullPathMapping, getLastModified, getMasterUser, getPathInfo, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getServletContext, getUser, isSubPath, registerChildUrlHandler, registerFirstChildUrlHandler, removeChildUrlHandler, secureServe, toPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.webswing.server.base.UrlHandler
checkMasterPermission, checkPermission, getFullPathMapping, getLastModified, getPathMapping, getRootHandler, getSecuredPath, getSecurityProvider, getServletContext, getUser, registerChildUrlHandler, registerFirstChildUrlHandler, removeChildUrlHandler
-
-
-
-
Constructor Detail
-
RestUrlHandlerImpl
public RestUrlHandlerImpl(UrlHandler parent, org.glassfish.jersey.internal.inject.AbstractBinder binder, Class... resources)
-
-
Method Detail
-
serve
public boolean serve(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.webswing.server.model.exception.WsException- Specified by:
servein interfaceUrlHandler- Overrides:
servein classAbstractUrlHandler- Throws:
org.webswing.server.model.exception.WsException
-
getPath
protected String getPath()
- Specified by:
getPathin classAbstractUrlHandler
-
init
public void init()
- Specified by:
initin interfaceUrlHandler- Overrides:
initin classAbstractUrlHandler
-
destroy
public void destroy()
- Specified by:
destroyin interfaceUrlHandler- Overrides:
destroyin classAbstractUrlHandler
-
getConfiguration
public org.glassfish.jersey.server.ResourceConfig getConfiguration()
- Specified by:
getConfigurationin interfaceorg.glassfish.jersey.server.spi.Container
-
getApplicationHandler
public org.glassfish.jersey.server.ApplicationHandler getApplicationHandler()
- Specified by:
getApplicationHandlerin interfaceorg.glassfish.jersey.server.spi.Container
-
reload
public void reload()
- Specified by:
reloadin interfaceorg.glassfish.jersey.server.spi.Container
-
reload
public void reload(org.glassfish.jersey.server.ResourceConfig configuration)
- Specified by:
reloadin interfaceorg.glassfish.jersey.server.spi.Container
-
-