public class ManagedFilePreviewRequestPluginImpl extends java.lang.Object implements PreviewRequestPlugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ManagedFilePreviewRequestPluginImpl()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
This method looks to see whether the file request has a version that exists in the content management
system (the
CMFILE |
public static final java.lang.String COPYRIGHT
public ManagedFilePreviewRequestPluginImpl()
public boolean handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext) throws javax.servlet.ServletException, java.io.IOException
CMFILE table). It will return that instance if a record exists.
IF a workspace is associated with the request, it will determine whether there is a version of the file
for that workspace. If not, it will return the file associated with the base, if any.
handleRequest
in interface PreviewRequestPlugin
request
- The HTTP request.response
- The HTTP response.servletContext
- The servlet context of the servlet making the request.javax.servlet.ServletException
- A problem occurred when modifying the response
object.java.io.IOException
- A problem occurred while writing the response in the
response object.com.ibm.commerce.context.preview.servlet.PreviewRequestPlugin#handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)