java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig@Private
public class ImageServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CONTENT_DISPOSITION |
|
static java.lang.String |
HADOOP_IMAGE_EDITS_HEADER |
|
static java.lang.String |
PATH_SPEC |
|
static java.lang.String |
RECENT_IMAGE_CHECK_ENABLED |
|
static boolean |
RECENT_IMAGE_CHECK_ENABLED_DEFAULT |
| Constructor | Description |
|---|---|
ImageServlet() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
|
protected void |
doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
|
static DataTransferThrottler |
getThrottler(org.apache.hadoop.conf.Configuration conf) |
Construct a throttler from conf
|
static DataTransferThrottler |
getThrottlerForBootstrapStandby(org.apache.hadoop.conf.Configuration conf) |
|
static void |
setFileNameHeaders(javax.servlet.http.HttpServletResponse response,
java.io.File file) |
|
static void |
setVerificationHeadersForGet(javax.servlet.http.HttpServletResponse response,
java.io.File file) |
Set headers for content length, and, if available, md5.
|
doDelete, doHead, doOptions, doPost, doTrace, getLastModified, service, servicepublic static final java.lang.String PATH_SPEC
public static final java.lang.String CONTENT_DISPOSITION
public static final java.lang.String HADOOP_IMAGE_EDITS_HEADER
public static final java.lang.String RECENT_IMAGE_CHECK_ENABLED
public static final boolean RECENT_IMAGE_CHECK_ENABLED_DEFAULT
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic static void setFileNameHeaders(javax.servlet.http.HttpServletResponse response,
java.io.File file)
public static DataTransferThrottler getThrottler(org.apache.hadoop.conf.Configuration conf)
conf - configurationpublic static DataTransferThrottler getThrottlerForBootstrapStandby(org.apache.hadoop.conf.Configuration conf)
public static void setVerificationHeadersForGet(javax.servlet.http.HttpServletResponse response,
java.io.File file)
throws java.io.IOException
java.io.IOExceptionprotected void doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPut in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.