org.apache.cocoon.servlet.util
Class ServletServiceUtils
java.lang.Object
org.apache.cocoon.servlet.util.ServletServiceUtils
public class ServletServiceUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletServiceUtils
public ServletServiceUtils()
getServletServiceResource
public static InputStream getServletServiceResource(javax.servlet.Servlet servlet,
String resourcePath)
- Get an
InputStream
of a Servlet that is a servlet-service as defined by the Cocoon Servlet-Service
framework.
- Parameters:
servlet
- The Servlet-Service reference.resourcePath
- The absolute resource path.
- Returns:
- An InputStream of the resource.
- Throws:
ServletServiceUtils.ServletServiceException
- If any problem occurs, this unchecked exception is thrown.
getServletServiceResource
public static InputStream getServletServiceResource(javax.servlet.Servlet servlet,
String resourcePath,
String query)
- Get an
InputStream
of a Servlet that is a servlet-service as defined by the Cocoon Servlet-Service
framework.
- Parameters:
servlet
- The Servlet-Service reference.resourcePath
- The absolute resource path.query
- The query string.
- Returns:
- An InputStream of the resource.
- Throws:
ServletServiceUtils.ServletServiceException
- If any problem occurs, this unchecked exception is thrown.
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.