org.ops4j.pax.web.jsp
Class JspServletWrapper

java.lang.Object
  extended by org.ops4j.pax.web.jsp.JspServletWrapper
All Implemented Interfaces:
javax.servlet.Servlet

public class JspServletWrapper
extends java.lang.Object
implements javax.servlet.Servlet

Wrapper of Jasper JspServlet that knows how to deal with resources loaded from osgi context.

Since:
0.3.0, January 07, 2008
Author:
Alin Dreghiciu

Constructor Summary
JspServletWrapper(org.osgi.framework.Bundle bundle)
           
 
Method Summary
 void destroy()
          Delegates to jasper servlet with a controlled context class loader.
 javax.servlet.ServletConfig getServletConfig()
          Delegates to jasper servlet.
 java.lang.String getServletInfo()
          Delegates to jasper servlet.
 void init(javax.servlet.ServletConfig config)
          Delegates to jasper servlet with a controlled context class loader.
 void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res)
          Delegates to jasper servlet with a controlled context class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspServletWrapper

public JspServletWrapper(org.osgi.framework.Bundle bundle)
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Delegates to jasper servlet with a controlled context class loader.

Specified by:
init in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException
See Also:
JspServlet.init(ServletConfig)

getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Delegates to jasper servlet.

Specified by:
getServletConfig in interface javax.servlet.Servlet
See Also:
GenericServlet.getServletConfig()

service

public void service(javax.servlet.ServletRequest req,
                    javax.servlet.ServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException
Delegates to jasper servlet with a controlled context class loader.

Specified by:
service in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.service(ServletRequest, ServletResponse)

getServletInfo

public java.lang.String getServletInfo()
Delegates to jasper servlet.

Specified by:
getServletInfo in interface javax.servlet.Servlet
See Also:
GenericServlet.getServletInfo()

destroy

public void destroy()
Delegates to jasper servlet with a controlled context class loader.

Specified by:
destroy in interface javax.servlet.Servlet
See Also:
JspServlet.destroy()


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.