org.apache.cocoon.servletservice
Class ServletServiceContext
java.lang.Object
org.apache.cocoon.servletservice.util.ServletContextWrapper
org.apache.cocoon.servletservice.ServletServiceContext
- All Implemented Interfaces:
- Absolutizable, ServletContext
- public class ServletServiceContext
- extends ServletContextWrapper
- implements Absolutizable
- Version:
- $Id: ServletServiceContext.java 572142 2007-09-02 20:20:11Z gkossakowski $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUPER
public static final String SUPER
- See Also:
- Constant Field Values
ServletServiceContext
public ServletServiceContext()
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute in interface ServletContext- Overrides:
getAttribute in class ServletContextWrapper
setAttribute
public void setAttribute(String name,
Object value)
- Specified by:
setAttribute in interface ServletContext- Overrides:
setAttribute in class ServletContextWrapper
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute in interface ServletContext- Overrides:
removeAttribute in class ServletContextWrapper
getAttributeNames
public Enumeration getAttributeNames()
- Specified by:
getAttributeNames in interface ServletContext- Overrides:
getAttributeNames in class ServletContextWrapper
setAttributes
public void setAttributes(Map map)
- Parameters:
map - the attributes to set
getResource
public URL getResource(String path)
throws MalformedURLException
- Specified by:
getResource in interface ServletContext- Overrides:
getResource in class ServletContextWrapper
- Throws:
MalformedURLException
getRealPath
public String getRealPath(String path)
- Specified by:
getRealPath in interface ServletContext- Overrides:
getRealPath in class ServletContextWrapper
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter in interface ServletContext- Overrides:
getInitParameter in class ServletContextWrapper
getInitParameterNames
public Enumeration getInitParameterNames()
- Specified by:
getInitParameterNames in interface ServletContext- Overrides:
getInitParameterNames in class ServletContextWrapper
getResourceAsStream
public InputStream getResourceAsStream(String path)
- Specified by:
getResourceAsStream in interface ServletContext- Overrides:
getResourceAsStream in class ServletContextWrapper
getContext
public ServletContext getContext(String uripath)
- Specified by:
getContext in interface ServletContext- Overrides:
getContext in class ServletContextWrapper
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion in interface ServletContext- Overrides:
getMajorVersion in class ServletContextWrapper
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion in interface ServletContext- Overrides:
getMinorVersion in class ServletContextWrapper
getResourcePaths
public Set getResourcePaths(String path)
- Specified by:
getResourcePaths in interface ServletContext- Overrides:
getResourcePaths in class ServletContextWrapper
getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)
- Specified by:
getRequestDispatcher in interface ServletContext- Overrides:
getRequestDispatcher in class ServletContextWrapper
getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String name)
- Specified by:
getNamedDispatcher in interface ServletContext- Overrides:
getNamedDispatcher in class ServletContextWrapper
getServerInfo
public String getServerInfo()
- Specified by:
getServerInfo in interface ServletContext- Overrides:
getServerInfo in class ServletContextWrapper
getServletContextName
public String getServletContextName()
- Specified by:
getServletContextName in interface ServletContext- Overrides:
getServletContextName in class ServletContextWrapper
setServlet
public void setServlet(Servlet servlet)
- Set the servlet of the context
- Parameters:
servlet -
absolutizeURI
public URI absolutizeURI(URI uri)
throws URISyntaxException
- Takes the scheme specific part of a servlet service URI (the scheme is the
responsibilty of the ServletSource) and resolve it with respect to the
servlets mount point.
- Specified by:
absolutizeURI in interface Absolutizable
- Parameters:
uri - relative uri
- Returns:
- absolutized uri
- Throws:
URISyntaxException
getNamedContext
public ServletContext getNamedContext(String name)
- Get the context of a servlet service with a given name.
setMountPath
public void setMountPath(String mountPath)
- Parameters:
mountPath - The mountPath to set.
getMountPath
public String getMountPath()
- Get the mount path of the servlet service context
setContextPath
public void setContextPath(String contextPath)
- Parameters:
contextPath -
setInitParams
public void setInitParams(Map properties)
- Parameters:
properties - The properties to set.
setConnections
public void setConnections(Map connections)
- Parameters:
connections - the connections to set
Copyright © 1999-2007 The Apache Software Foundation. All Rights Reserved.