public class StreamFile
extends javax.servlet.http.HttpServlet
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CONTENT_LENGTH |
| 构造器和说明 |
|---|
StreamFile() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ClientProtocol |
createNameNodeProxy()
Create a
NameNode proxy from the current ServletContext. |
protected URI |
createRedirectUri(String servletpath,
UserGroupInformation ugi,
DatanodeID host,
javax.servlet.http.HttpServletRequest request,
String tokenString)
Create a URI for redirecting request
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected DFSClient |
getDFSClient(javax.servlet.http.HttpServletRequest request)
getting a client for connecting to dfs
|
protected String |
getFilename(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get filename from the request
|
protected UserGroupInformation |
getUGI(javax.servlet.http.HttpServletRequest request,
Configuration conf)
Get
UserGroupInformation from request
* @throws IOException |
protected void |
writeXml(Exception except,
String path,
org.znerd.xmlenc.XMLOutputter doc)
Write the object to XML format
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected DFSClient getDFSClient(javax.servlet.http.HttpServletRequest request) throws IOException, InterruptedException
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet 在类中 javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void writeXml(Exception except, String path, org.znerd.xmlenc.XMLOutputter doc) throws IOException
IOExceptionprotected UserGroupInformation getUGI(javax.servlet.http.HttpServletRequest request, Configuration conf) throws IOException
UserGroupInformation from request
* @throws IOExceptionIOExceptionprotected ClientProtocol createNameNodeProxy() throws IOException
NameNode proxy from the current ServletContext.IOExceptionprotected URI createRedirectUri(String servletpath, UserGroupInformation ugi, DatanodeID host, javax.servlet.http.HttpServletRequest request, String tokenString) throws URISyntaxException
protected String getFilename(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation