org.apache.cocoon.components.deli
Class DeliImpl.CocoonServletContext

java.lang.Object
  extended by org.apache.cocoon.components.deli.DeliImpl.CocoonServletContext
All Implemented Interfaces:
ServletContext
Enclosing class:
DeliImpl

public static class DeliImpl.CocoonServletContext
extends Object
implements ServletContext

Stub implementation of Servlet Context


Constructor Summary
DeliImpl.CocoonServletContext(Context context)
           
 
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)
           
 Set getResourcePaths(String path)
           
 String getServerInfo()
           
 Servlet getServlet(String name)
          Deprecated. The method DeliImpl.CocoonServletContext.getServlet(String) overrides a deprecated method from ServletContext.
 String getServletContextName()
           
 Enumeration getServletNames()
          Deprecated. The method DeliImpl.CocoonServletContext.getServletNames() overrides a deprecated method from ServletContext.
 Enumeration getServlets()
          Deprecated. The method DeliImpl.CocoonServletContext.getServlets() overrides a deprecated method from ServletContext.
 void log(Exception exception, String message)
          Deprecated. use log(String message, Throwable throwable) instead.
 void log(String message)
           
 void log(String message, 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

DeliImpl.CocoonServletContext

public DeliImpl.CocoonServletContext(Context context)
Method Detail

getAttribute

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

setAttribute

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

getAttributeNames

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

getResource

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

getRealPath

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

getMimeType

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

getInitParameter

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

getResourceAsStream

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

getContext

public ServletContext getContext(String uripath)
Specified by:
getContext in interface ServletContext

getInitParameterNames

public Enumeration getInitParameterNames()
Specified by:
getInitParameterNames in interface ServletContext

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface ServletContext

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface ServletContext

getNamedDispatcher

public RequestDispatcher getNamedDispatcher(String name)
Specified by:
getNamedDispatcher in interface ServletContext

getRequestDispatcher

public RequestDispatcher getRequestDispatcher(String path)
Specified by:
getRequestDispatcher in interface ServletContext

getResourcePaths

public Set getResourcePaths(String path)

getServerInfo

public String getServerInfo()
Specified by:
getServerInfo in interface ServletContext

getServlet

public Servlet getServlet(String name)
                   throws ServletException
Deprecated. The method DeliImpl.CocoonServletContext.getServlet(String) overrides a deprecated method from ServletContext.

Specified by:
getServlet in interface ServletContext
Throws:
ServletException
See Also:
ServletContext#getServlet(java.lang.String)

getServletContextName

public String getServletContextName()

getServletNames

public Enumeration getServletNames()
Deprecated. The method DeliImpl.CocoonServletContext.getServletNames() overrides a deprecated method from ServletContext.

Specified by:
getServletNames in interface ServletContext
See Also:
ServletContext#getServletNames()

getServlets

public Enumeration getServlets()
Deprecated. The method DeliImpl.CocoonServletContext.getServlets() overrides a deprecated method from ServletContext.

Specified by:
getServlets in interface ServletContext
See Also:
ServletContext#getServlets()

log

public void log(String message)
Specified by:
log in interface ServletContext

log

public void log(Exception exception,
                String message)
Deprecated. use log(String message, Throwable throwable) instead.

Specified by:
log in interface ServletContext

log

public void log(String message,
                Throwable throwable)
Specified by:
log in interface ServletContext

removeAttribute

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


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