org.apache.myfaces.renderkit.html.util
Interface ResourceLoader

All Known Implementing Classes:
CAPTCHARenderer, MyFacesResourceLoader, StreamingResourceLoader

public interface ResourceLoader

A class which can interpret the URI generated by a corresponding ResourceHandler implementation, locate that resource and write it to the servlet response stream.

Version:
$Revision: 673833 $ $Date: 2008-07-03 16:58:05 -0500 (Thu, 03 Jul 2008) $
Author:
Mathias Broekelmann (latest modification by $Author: skitching $)

Nested Class Summary
static class ResourceLoader.ClosedSocketException
          Define an exception for reporting when a client requests a resource, but then closes its socket before we finish sending it.
 
Method Summary
 void serveResource(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String resourceUri)
          Called by AddResource to render external resource data
 

Method Detail

serveResource

void serveResource(javax.servlet.ServletContext context,
                   javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   java.lang.String resourceUri)
                   throws java.io.IOException
Called by AddResource to render external resource data

Parameters:
context - TODO
request - the request
response - the response to write the resource content to
resourceUri - contains the uri part after the uri which is used to identify the resource loader
Throws:
java.io.IOException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.