Skip navigation links

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

E17273-03


oracle.stellent.wcm.javaee.servlet.proxy
Class FileProxyHandler

java.lang.Object
  extended by oracle.stellent.wcm.javaee.servlet.proxy.AbstractProxyHandler
      extended by oracle.stellent.wcm.javaee.servlet.proxy.FileProxyHandler

All Implemented Interfaces:
ProxyServlet.ProxyHandler

public class FileProxyHandler
extends AbstractProxyHandler

Stream files from via ContentAdapter from the configured Content Server.


Constructor Summary
FileProxyHandler(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
 SiteRequestLogic<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.AbstractProxyHandler
getClientApplication, getServletConfig, getServletContext, populateRequest, sendProxyResponse, streamResponse

 

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

 

Constructor Detail

FileProxyHandler

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

Method Detail

getCommandLogic

public SiteRequestLogic<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® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


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