Class OSGiServletHandler
java.lang.Object
org.glassfish.grizzly.http.server.HttpHandler
org.glassfish.grizzly.servlet.ServletHandler
org.glassfish.grizzly.osgi.httpservice.OSGiServletHandler
- All Implemented Interfaces:
OSGiHandler
public class OSGiServletHandler
extends org.glassfish.grizzly.servlet.ServletHandler
implements OSGiHandler
OSGi customized
ServletHandler.- Author:
- Hubert Iwaniuk
-
Field Summary
Fields inherited from class org.glassfish.grizzly.servlet.ServletHandler
classLoader, expectationHandler, filterChainFactory, initialize, properties, servletClass, servletClassName, servletInstance -
Constructor Summary
ConstructorsConstructorDescriptionOSGiServletHandler(javax.servlet.Servlet servlet, org.osgi.service.http.HttpContext httpContext, OSGiServletContext servletContext, HashMap<String, String> servletInitParams, Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.service.http.HttpContextProcessing lock.Removal lock.protected StringnewServletHandler(javax.servlet.Servlet servlet) protected voidsetFilterChainFactory(org.glassfish.grizzly.servlet.FilterChainFactory filterChainFactory) protected voidsetServletPath(String path) voidStartsServletinstance of thisOSGiServletHandler.Methods inherited from class org.glassfish.grizzly.servlet.ServletHandler
configureServletEnv, customizeErrorPage, destroy, doServletService, getClassLoader, getContextPath, getExpectationHandler, getFilterChain, getName, getServletConfig, getServletCtx, getServletInstance, getSessionCookieName, getSessionManager, loadServlet, sendAcknowledgment, service, setClassLoader, setContextPath, setDispatcherHelper, setExpectationHandler, setPathData, setServletClass, setServletClassName, setServletInstance, setSessionManager, startMethods inherited from class org.glassfish.grizzly.http.server.HttpHandler
getErrorPageGenerator, getRequestExecutorProvider, getRequestURIEncoding, isAllowCustomStatusMessage, isAllowEncodedSlash, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setRequestURIEncoding, setRequestURIEncoding, updatePaths
-
Constructor Details
-
OSGiServletHandler
public OSGiServletHandler(javax.servlet.Servlet servlet, org.osgi.service.http.HttpContext httpContext, OSGiServletContext servletContext, HashMap<String, String> servletInitParams, Logger logger)
-
-
Method Details
-
newServletHandler
-
startServlet
public void startServlet() throws javax.servlet.ServletExceptionStartsServletinstance of thisOSGiServletHandler.- Throws:
javax.servlet.ServletException- IfServletstartup failed.
-
getProcessingLock
Processing lock.ReentrantReadWriteLock.ReadLockcan be obtained by concurrent threads at the same time.- Specified by:
getProcessingLockin interfaceOSGiHandler- Returns:
- Processing lock.
-
getRemovalLock
Removal lock.ReentrantReadWriteLock.WriteLockcan be obtained only by one thread, blocksOSGiHandler.getProcessingLock().- Specified by:
getRemovalLockin interfaceOSGiHandler- Returns:
- Removal lock.
- See Also:
-
setServletPath
-
getServletPath
-
getHttpContext
public org.osgi.service.http.HttpContext getHttpContext() -
setFilterChainFactory
protected void setFilterChainFactory(org.glassfish.grizzly.servlet.FilterChainFactory filterChainFactory) - Overrides:
setFilterChainFactoryin classorg.glassfish.grizzly.servlet.ServletHandler
-