/** * Set the specified request attribute to the specified value. * * @param name Name of the request attribute to set * @param value The associated value */ public void setAttribute(final String name, final Object value) { // Name cannot be null if (name == null) throw new IllegalArgumentException("Argument 'name' cannot be null"); // Null value is the same as removeAttribute() if (value == null) { removeAttribute(name); return; } if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) { dispatcherType = value; return; } else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) { requestDispatcherPath = value; return; } request.setAttribute(name, value); assert response != null; if (response.isSendFileEnabled() && SEND_FILE_ATTR.equals(name)) { RequestUtils.handleSendFile(this); } }
/** * Set the specified request attribute to the specified value. * * @param name Name of the request attribute to set * @param value The associated value */ public void setAttribute(final String name, final Object value) { // Name cannot be null if (name == null) throw new IllegalArgumentException("Argument 'name' cannot be null"); // Null value is the same as removeAttribute() if (value == null) { removeAttribute(name); return; } if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) { dispatcherType = value; return; } else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) { requestDispatcherPath = value; return; } request.setAttribute(name, value); assert response != null; if (response.isSendFileEnabled() && SEND_FILE_ATTR.equals(name)) { RequestUtils.handleSendFile(this); } }
/** * Set the specified request attribute to the specified value. * * @param name Name of the request attribute to set * @param value The associated value */ public void setAttribute(final String name, final Object value) { // Name cannot be null if (name == null) throw new IllegalArgumentException("Argument 'name' cannot be null"); // Null value is the same as removeAttribute() if (value == null) { removeAttribute(name); return; } if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) { dispatcherType = value; return; } else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) { requestDispatcherPath = value; return; } request.setAttribute(name, value); if (response.isSendFileEnabled() && SEND_FILE_ATTR.equals(name)) { RequestUtils.handleSendFile(this); } }
/** * Set the specified request attribute to the specified value. * * @param name Name of the request attribute to set * @param value The associated value */ public void setAttribute(final String name, final Object value) { // Name cannot be null if (name == null) throw new IllegalArgumentException("Argument 'name' cannot be null"); // Null value is the same as removeAttribute() if (value == null) { removeAttribute(name); return; } if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) { dispatcherType = value; return; } else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) { requestDispatcherPath = value; return; } request.setAttribute(name, value); assert response != null; if (response.isSendFileEnabled() && SEND_FILE_ATTR.equals(name)) { RequestUtils.handleSendFile(this); } }
/** * Set the specified request attribute to the specified value. * * @param name Name of the request attribute to set * @param value The associated value */ public void setAttribute(final String name, final Object value) { // Name cannot be null if (name == null) throw new IllegalArgumentException("Argument 'name' cannot be null"); // Null value is the same as removeAttribute() if (value == null) { removeAttribute(name); return; } if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) { dispatcherType = value; return; } else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) { requestDispatcherPath = value; return; } request.setAttribute(name, value); assert response != null; if (response.isSendFileEnabled() && SEND_FILE_ATTR.equals(name)) { RequestUtils.handleSendFile(this); } }
/** * Set the specified request attribute to the specified value. * * @param name Name of the request attribute to set * @param value The associated value */ public void setAttribute(final String name, final Object value) { // Name cannot be null if (name == null) throw new IllegalArgumentException("Argument 'name' cannot be null"); // Null value is the same as removeAttribute() if (value == null) { removeAttribute(name); return; } if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) { dispatcherType = value; return; } else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) { requestDispatcherPath = value; return; } request.setAttribute(name, value); assert response != null; if (response.isSendFileEnabled() && SEND_FILE_ATTR.equals(name)) { RequestUtils.handleSendFile(this); } }
/** * Set the specified request attribute to the specified value. * * @param name Name of the request attribute to set * @param value The associated value */ public void setAttribute(final String name, final Object value) { // Name cannot be null if (name == null) throw new IllegalArgumentException("Argument 'name' cannot be null"); // Null value is the same as removeAttribute() if (value == null) { removeAttribute(name); return; } if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) { dispatcherType = value; return; } else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) { requestDispatcherPath = value; return; } request.setAttribute(name, value); assert response != null; if (response.isSendFileEnabled() && SEND_FILE_ATTR.equals(name)) { RequestUtils.handleSendFile(this); } }
/** * Set the specified request attribute to the specified value. * * @param name Name of the request attribute to set * @param value The associated value */ public void setAttribute(final String name, final Object value) { // Name cannot be null if (name == null) throw new IllegalArgumentException("Argument 'name' cannot be null"); // Null value is the same as removeAttribute() if (value == null) { removeAttribute(name); return; } if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) { dispatcherType = value; return; } else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) { requestDispatcherPath = value; return; } request.setAttribute(name, value); assert response != null; if (response.isSendFileEnabled() && SEND_FILE_ATTR.equals(name)) { RequestUtils.handleSendFile(this); } }
/** * Return the specified request attribute if it exists; otherwise, return * <code>null</code>. * * @param name Name of the request attribute to return * @return the specified request attribute if it exists; otherwise, return * <code>null</code>. */ public Object getAttribute(final String name) { if (SEND_FILE_ENABLED_ATTR.equals(name)) { assert response != null; return response.isSendFileEnabled(); } Object attribute = request.getAttribute(name); if (attribute != null) { return attribute; } if (Globals.SSL_CERTIFICATE_ATTR.equals(name)) { attribute = RequestUtils.populateCertificateAttribute(this); if (attribute != null) { request.setAttribute(name, attribute); } } else if (isSSLAttribute(name)) { RequestUtils.populateSSLAttributes(this); attribute = request.getAttribute(name); } else if (Globals.DISPATCHER_REQUEST_PATH_ATTR.equals(name)) { return requestDispatcherPath; } return attribute; }
/** * Return the specified request attribute if it exists; otherwise, return * <code>null</code>. * * @param name Name of the request attribute to return * @return the specified request attribute if it exists; otherwise, return * <code>null</code>. */ public Object getAttribute(final String name) { if (SEND_FILE_ENABLED_ATTR.equals(name)) { assert response != null; return response.isSendFileEnabled(); } Object attribute = request.getAttribute(name); if (attribute != null) { return attribute; } if (Globals.SSL_CERTIFICATE_ATTR.equals(name)) { attribute = RequestUtils.populateCertificateAttribute(this); if (attribute != null) { request.setAttribute(name, attribute); } } else if (isSSLAttribute(name)) { RequestUtils.populateSSLAttributes(this); attribute = request.getAttribute(name); } else if (Globals.DISPATCHER_REQUEST_PATH_ATTR.equals(name)) { return requestDispatcherPath; } return attribute; }
/** * Return the specified request attribute if it exists; otherwise, return * <code>null</code>. * * @param name Name of the request attribute to return * @return the specified request attribute if it exists; otherwise, return * <code>null</code>. */ public Object getAttribute(final String name) { if (SEND_FILE_ENABLED_ATTR.equals(name)) { assert response != null; return response.isSendFileEnabled(); } Object attribute = request.getAttribute(name); if (attribute != null) { return attribute; } if (Globals.SSL_CERTIFICATE_ATTR.equals(name)) { attribute = RequestUtils.populateCertificateAttribute(this); if (attribute != null) { request.setAttribute(name, attribute); } } else if (isSSLAttribute(name)) { RequestUtils.populateSSLAttributes(this); attribute = request.getAttribute(name); } else if (Globals.DISPATCHER_REQUEST_PATH_ATTR.equals(name)) { return requestDispatcherPath; } return attribute; }
request.setAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE, stream);
request.setAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE, stream);
request.setAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE, stream);
request.setAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE, stream);
request.setAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE, stream);
request.setAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE, stream);
request.setAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE, stream);
request.setAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE, stream);
request.setAttribute(Http2Stream.HTTP2_STREAM_ATTRIBUTE, stream);