/** * 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; }
/** * 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; }
/** * 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)) { 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; }
/** * 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; }
RequestUtils.populateCertificateAttribute(coyoteRequest); attr = getAttribute(Globals.CERTIFICATES_ATTR); if (attr != null) {