org.apache.cocoon.servlet.util
Class ServletServiceUtils

java.lang.Object
  extended by org.apache.cocoon.servlet.util.ServletServiceUtils

public class ServletServiceUtils
extends Object


Nested Class Summary
static class ServletServiceUtils.ServletServiceException
          A general purpose RuntimeException that is used to indicate any problem with accessing a servlet-service.
 
Constructor Summary
ServletServiceUtils()
           
 
Method Summary
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.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletServiceUtils

public ServletServiceUtils()
Method Detail

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.