@InterfaceAudience.Private public class FileDataServlet extends javax.servlet.http.HttpServlet
HftpFileSystem,
Serialized Form| Constructor and Description |
|---|
FileDataServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected ClientProtocol |
createNameNodeProxy()
Create a
NameNode proxy from the current ServletContext. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Service a GET request as described below.
|
protected UserGroupInformation |
getUGI(javax.servlet.http.HttpServletRequest request,
Configuration conf) |
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, servicepublic void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
GET http://<nn>:<port>/data[/<path>] HTTP/1.1
doGet in class javax.servlet.http.HttpServletIOExceptionprotected void writeXml(Exception except, String path, org.znerd.xmlenc.XMLOutputter doc) throws IOException
IOExceptionprotected ClientProtocol createNameNodeProxy() throws IOException
NameNode proxy from the current ServletContext.IOExceptionprotected UserGroupInformation getUGI(javax.servlet.http.HttpServletRequest request, Configuration conf) throws IOException
IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.