org.apache.cocoon.environment.http
Class HttpContext

java.lang.Object
  extended by org.apache.cocoon.environment.http.HttpContext
All Implemented Interfaces:
Context

public final class HttpContext
extends Object
implements Context

Implements the Context interface

Version:
CVS $Id: HttpContext.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
?

Constructor Summary
HttpContext(ServletContext servletContext)
          Constructs a HttpContext object from a ServletContext object
 
Method Summary
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 ServletContext getContext(String uripath)
           
 String getInitParameter(String name)
           
 Enumeration getInitParameterNames()
           
 int getMajorVersion()
           
 String getMimeType(String file)
           
 int getMinorVersion()
           
 RequestDispatcher getNamedDispatcher(String name)
           
 String getRealPath(String path)
           
 RequestDispatcher getRequestDispatcher(String path)
           
 URL getResource(String path)
           
 InputStream getResourceAsStream(String path)
           
 String getServerInfo()
           
 void log(String msg)
           
 void log(String msg, Throwable throwable)
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpContext

public HttpContext(ServletContext servletContext)
Constructs a HttpContext object from a ServletContext object

Method Detail

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface Context

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface Context

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in interface Context

getAttributeNames

public Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface Context

getResource

public URL getResource(String path)
                throws MalformedURLException
Specified by:
getResource in interface Context
Throws:
MalformedURLException

getResourceAsStream

public InputStream getResourceAsStream(String path)
Specified by:
getResourceAsStream in interface Context

getRealPath

public String getRealPath(String path)
Specified by:
getRealPath in interface Context

getMimeType

public String getMimeType(String file)
Specified by:
getMimeType in interface Context

getInitParameter

public String getInitParameter(String name)
Specified by:
getInitParameter in interface Context

getContext

public ServletContext getContext(String uripath)

getInitParameterNames

public Enumeration getInitParameterNames()

getMajorVersion

public int getMajorVersion()

getMinorVersion

public int getMinorVersion()

getNamedDispatcher

public RequestDispatcher getNamedDispatcher(String name)

getRequestDispatcher

public RequestDispatcher getRequestDispatcher(String path)

getServerInfo

public String getServerInfo()

log

public void log(String msg)

log

public void log(String msg,
                Throwable throwable)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.