
org.apache.myfaces.renderkit.html.util.ResourceLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of myfaces-commons Show documentation
Show all versions of myfaces-commons Show documentation
The MyFaces Commons Subproject provides base classes for usage in both the
MyFaces implementation and the MyFaces Tomahawk components. This is also
a general set of utility classes for usage in your JSF projects independent
of the implementation you might be deciding upon.
The newest version!
/*
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.myfaces.renderkit.html.util;
import java.io.IOException;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* A class which can interpret the URI generated by a corresponding ResourceHandler
* implementation, locate that resource and write it to the servlet response stream.
*
* @author Mathias Broekelmann (latest modification by $Author: baranda $)
* @version $Revision: 371372 $ $Date: 2006-01-22 20:02:25 +0000 (Sun, 22 Jan 2006) $
*/
public interface ResourceLoader
{
/**
* Called by AddResource to render external resource data
* @param context TODO
* @param request the request
* @param response the response to write the resource content to
* @param resourceUri contains the uri part after the uri which
* is used to identify the resource loader
*
* @throws IOException
*/
public void serveResource(ServletContext context, HttpServletRequest request,
HttpServletResponse response, String resourceUri) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy