protected void init(final UserGroupInformation ugi, final DelegationParam delegation, final UserParam username, final DoAsParam doAsUser, final UriFsPathParam path, final HttpOpParam<?> op, final Param<?, ?>... parameters) { if (useIpcCallq == null) { Configuration conf = (Configuration)context.getAttribute(JspHelper.CURRENT_CONF); useIpcCallq = conf.getBoolean( DFSConfigKeys.DFS_WEBHDFS_USE_IPC_CALLQ, DFSConfigKeys.DFS_WEBHDFS_USE_IPC_CALLQ_DEFAULT); } if (LOG.isTraceEnabled()) { LOG.trace("HTTP " + op.getValue().getType() + ": " + op + ", " + path + ", ugi=" + ugi + ", " + username + ", " + doAsUser + Param.toSortedString(", ", parameters)); } //clear content type response.setContentType(null); }
private void init(final UserGroupInformation ugi, final DelegationParam delegation, final UserParam username, final DoAsParam doAsUser, final UriFsPathParam path, final HttpOpParam<?> op, final Param<?, ?>... parameters) { if (LOG.isTraceEnabled()) { LOG.trace("HTTP " + op.getValue().getType() + ": " + op + ", " + path + ", ugi=" + ugi + ", " + username + ", " + doAsUser + Param.toSortedString(", ", parameters)); } //clear content type response.setContentType(null); // set the remote address, if coming in via a trust proxy server then // the address with be that of the proxied client REMOTE_ADDRESS.set(JspHelper.getRemoteAddr(request)); }
final URL url = webhdfs.toUrl(op, dir); final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(op.getType().toString()); conn.connect(); assertEquals(HttpServletResponse.SC_OK, conn.getResponseCode()); final URL url = webhdfs.toUrl(op, dir); final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(op.getType().toString()); conn.connect(); assertEquals(HttpServletResponse.SC_OK, conn.getResponseCode()); final URL url = webhdfs.toUrl(op, dir); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(op.getType().toString()); conn.setDoOutput(false); conn.setInstanceFollowRedirects(false); conn.setRequestMethod(op.getType().toString()); conn.setDoOutput(op.getDoOutput()); conn.connect(); final URL url = webhdfs.toUrl(op, file); final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(op.getType().toString()); conn.connect(); URL url = webhdfs.toUrl(op, path); HttpURLConnection conn = (HttpURLConnection)url.openConnection();
try { conn = (HttpURLConnection)url.openConnection(); conn.setRequestMethod(op.getType().toString()); conn.setDoOutput(op.getDoOutput()); conn.setInstanceFollowRedirects(true);
try { conn = (HttpURLConnection)url.openConnection(); conn.setRequestMethod(op.getType().toString()); conn.setDoOutput(op.getDoOutput()); conn.setInstanceFollowRedirects(true);
(HttpURLConnection)connectionFactory.openConnection(url); final boolean doOutput = op.getDoOutput(); conn.setRequestMethod(op.getType().toString()); conn.setInstanceFollowRedirects(false); if (restCsrfCustomHeader != null && !restCsrfMethodsToIgnore.contains(op.getType().name())) { switch (op.getType()) {
final URL url = webhdfs.toUrl(op, file); final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod(op.getType().toString()); conn.connect();
private void init(final UserGroupInformation ugi, final DelegationParam delegation, final UserParam username, final DoAsParam doAsUser, final UriFsPathParam path, final HttpOpParam<?> op, final Param<?, ?>... parameters) { if (LOG.isTraceEnabled()) { LOG.trace("HTTP " + op.getValue().getType() + ": " + op + ", " + path + ", ugi=" + ugi + ", " + username + ", " + doAsUser + Param.toSortedString(", ", parameters)); } //clear content type response.setContentType(null); // set the remote address, if coming in via a trust proxy server then // the address with be that of the proxied client REMOTE_ADDRESS.set(JspHelper.getRemoteAddr(request)); }
@Override public Type getType() { return op.getType(); }
@Override public Type getType() { return op.getType(); }
@Override public Type getType() { return op.getType(); }