Package de.xima.fc.portal.model
Class PortalServletWrapper
- java.lang.Object
-
- de.xima.fc.portal.model.PortalServletWrapper
-
- All Implemented Interfaces:
javax.servlet.Servlet
public class PortalServletWrapper extends Object implements javax.servlet.Servlet
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description PortalServletWrapper(Class<? extends javax.servlet.Servlet> wrappedClass, javax.servlet.annotation.WebServlet annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
destroy()
javax.servlet.annotation.WebServlet
getAnnotation()
String
getName()
javax.servlet.ServletConfig
getServletConfig()
String
getServletInfo()
String[]
getUrlMappings()
javax.servlet.Servlet
getWrapped()
Deprecated.You should not care about the wrapped servlet.void
init(javax.servlet.ServletConfig config)
void
service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res)
-
-
-
Constructor Detail
-
PortalServletWrapper
public PortalServletWrapper(Class<? extends javax.servlet.Servlet> wrappedClass, javax.servlet.annotation.WebServlet annotation)
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Throws:
javax.servlet.ServletException
-
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- Specified by:
getServletConfig
in interfacejavax.servlet.Servlet
-
service
public void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) throws javax.servlet.ServletException, IOException
- Specified by:
service
in interfacejavax.servlet.Servlet
- Throws:
javax.servlet.ServletException
IOException
-
getServletInfo
public String getServletInfo()
- Specified by:
getServletInfo
in interfacejavax.servlet.Servlet
-
getAnnotation
public javax.servlet.annotation.WebServlet getAnnotation()
-
getUrlMappings
public String[] getUrlMappings()
-
getWrapped
@Deprecated public javax.servlet.Servlet getWrapped()
Deprecated.You should not care about the wrapped servlet.- Returns:
- The portal servlet wrapped by this instance.
-
getName
public String getName()
- Returns:
- The name of this portal servlet, taken from the annotation if present, or defaulting to the fully qualified class name of the filter class.
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Servlet
-
-