org.apache.cocoon.environment.http
Class HttpContext
java.lang.Object
org.apache.cocoon.environment.impl.AbstractContext
org.apache.cocoon.environment.http.HttpContext
- All Implemented Interfaces:
- org.apache.cocoon.environment.Context, ServletContext
- public final class HttpContext
- extends AbstractContext
Implements the Context
interface
- Version:
- $Id: HttpContext.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpContext
public HttpContext(ServletContext servletContext)
- Constructs a HttpContext object from a ServletContext object
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in interface org.apache.cocoon.environment.Context
- Overrides:
getAttribute
in class AbstractContext
- See Also:
ServletContext.getAttribute(java.lang.String)
setAttribute
public void setAttribute(String name,
Object value)
- Specified by:
setAttribute
in interface org.apache.cocoon.environment.Context
- Overrides:
setAttribute
in class AbstractContext
- See Also:
ServletContext.setAttribute(java.lang.String, java.lang.Object)
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute
in interface org.apache.cocoon.environment.Context
- Overrides:
removeAttribute
in class AbstractContext
- See Also:
ServletContext.removeAttribute(java.lang.String)
getAttributeNames
public Enumeration getAttributeNames()
- Specified by:
getAttributeNames
in interface org.apache.cocoon.environment.Context
- Overrides:
getAttributeNames
in class AbstractContext
- See Also:
ServletContext.getAttributeNames()
getResource
public URL getResource(String path)
throws MalformedURLException
- Specified by:
getResource
in interface org.apache.cocoon.environment.Context
- Overrides:
getResource
in class AbstractContext
- Throws:
MalformedURLException
- See Also:
ServletContext.getResource(java.lang.String)
getResourceAsStream
public InputStream getResourceAsStream(String path)
- Description copied from class:
AbstractContext
- Get access to the resource as @link
InputStream
. If there is any problem,
null
is returned.
- Specified by:
getResourceAsStream
in interface org.apache.cocoon.environment.Context
- Overrides:
getResourceAsStream
in class AbstractContext
- See Also:
ServletContext.getResourceAsStream(java.lang.String)
getRealPath
public String getRealPath(String path)
- Specified by:
getRealPath
in interface org.apache.cocoon.environment.Context
- Overrides:
getRealPath
in class AbstractContext
- See Also:
ServletContext.getRealPath(java.lang.String)
getMimeType
public String getMimeType(String file)
- Specified by:
getMimeType
in interface org.apache.cocoon.environment.Context
- Overrides:
getMimeType
in class AbstractContext
- See Also:
ServletContext.getMimeType(java.lang.String)
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter
in interface org.apache.cocoon.environment.Context
- Overrides:
getInitParameter
in class AbstractContext
- See Also:
ServletContext.getInitParameter(java.lang.String)
getContext
public ServletContext getContext(String uripath)
- Specified by:
getContext
in interface ServletContext
- Overrides:
getContext
in class AbstractContext
- See Also:
ServletContext.getContext(java.lang.String)
getInitParameterNames
public Enumeration getInitParameterNames()
- Specified by:
getInitParameterNames
in interface ServletContext
- Overrides:
getInitParameterNames
in class AbstractContext
- See Also:
ServletContext.getInitParameterNames()
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interface ServletContext
- Overrides:
getMajorVersion
in class AbstractContext
- See Also:
ServletContext.getMajorVersion()
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interface ServletContext
- Overrides:
getMinorVersion
in class AbstractContext
- See Also:
ServletContext.getMinorVersion()
getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String name)
- Specified by:
getNamedDispatcher
in interface ServletContext
- Overrides:
getNamedDispatcher
in class AbstractContext
- See Also:
ServletContext.getNamedDispatcher(java.lang.String)
getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)
- Specified by:
getRequestDispatcher
in interface ServletContext
- Overrides:
getRequestDispatcher
in class AbstractContext
- See Also:
ServletContext.getRequestDispatcher(java.lang.String)
getServerInfo
public String getServerInfo()
- Specified by:
getServerInfo
in interface ServletContext
- Overrides:
getServerInfo
in class AbstractContext
- See Also:
ServletContext.getServerInfo()
log
public void log(String msg)
- See Also:
ServletContext.log(java.lang.String)
log
public void log(String msg,
Throwable throwable)
- See Also:
ServletContext.log(java.lang.String, java.lang.Throwable)
log
public void log(Exception exception,
String msg)
- See Also:
ServletContext.log(java.lang.Exception, java.lang.String)
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.