Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


oracle.stellent.wcm.javaee.servlet.proxy.handlers
Class FileHandler

java.lang.Object
  extended by oracle.stellent.wcm.javaee.servlet.proxy.handlers.AbstractHandler
      extended by oracle.stellent.wcm.javaee.servlet.proxy.handlers.FileHandler

All Implemented Interfaces:
ProxyServlet.Handler

public class FileHandler
extends AbstractHandler

Stream files from via ContentAdapter from the configured Content Server.


Constructor Summary
FileHandler(javax.servlet.ServletConfig servletConfig, javax.servlet.ServletContext servletContext)
           

 

Method Summary
protected  boolean checkIfModifiedSince(ServletRequestContext requestContext, ContentStream stream)
          Check the "If-Modified-Since" header and respond appropriately
protected  boolean checkSecurity(ContentURI contentURI, ServletRequestContext requestContext)
          Check the security of the request
 RequestLogic<SiteRequest> getCommandLogic()
           
 void handle(ServletRequestContext requestContext)
          Handle this request
protected  void updateProxyResponse(ServletRequestContext requestContext, ContentStream contentStream, ProxyResponse proxyResponse)
          Update the proxy response object

 

Methods inherited from class oracle.stellent.wcm.javaee.servlet.proxy.handlers.AbstractHandler
getServletConfig, getServletContext, getWcmApplication, populateRequest, sendProxyResponse, streamResponse

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

FileHandler

public FileHandler(javax.servlet.ServletConfig servletConfig,
                   javax.servlet.ServletContext servletContext)

Method Detail

getCommandLogic

public RequestLogic<SiteRequest> getCommandLogic()
                                          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

handle

public void handle(ServletRequestContext requestContext)
            throws javax.servlet.ServletException,
                   java.io.IOException
Handle this request
Parameters:
requestContext - the request context
Throws:
javax.servlet.ServletException
java.io.IOException

updateProxyResponse

protected void updateProxyResponse(ServletRequestContext requestContext,
                                   ContentStream contentStream,
                                   ProxyResponse proxyResponse)
                            throws java.io.IOException
Update the proxy response object
Parameters:
requestContext - the request context
contentStream - the content stream
proxyResponse - the proxy response
Throws:
java.io.IOException

checkSecurity

protected boolean checkSecurity(ContentURI contentURI,
                                ServletRequestContext requestContext)
                         throws javax.servlet.ServletException
Check the security of the request
Parameters:
contentURI - the uri
requestContext - the request context
Returns:
true if the security check passed, false if it failed
Throws:
javax.servlet.ServletException

checkIfModifiedSince

protected boolean checkIfModifiedSince(ServletRequestContext requestContext,
                                       ContentStream stream)
Check the "If-Modified-Since" header and respond appropriately
Parameters:
requestContext - the request context
stream - the content stream object
Returns:
true if the request should proceed, false if the content has not been modified

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.