@Override public Object getAttribute(String name) { return super.getAttribute(name); }
@Override @Nullable public Object getAttribute(String name) { if ((this.explicitAttributes == null || !this.explicitAttributes.contains(name)) && (this.exposedContextBeanNames == null || this.exposedContextBeanNames.contains(name)) && this.webApplicationContext.containsBean(name)) { return this.webApplicationContext.getBean(name); } else { return super.getAttribute(name); } }
@Override public Object getAttribute(String name) { if ("isWrapped".equals(name)) { return Boolean.TRUE; } return super.getAttribute(name); }
@Override @Nullable public Object getAttribute(String name) { if ((this.explicitAttributes == null || !this.explicitAttributes.contains(name)) && (this.exposedContextBeanNames == null || this.exposedContextBeanNames.contains(name)) && this.webApplicationContext.containsBean(name)) { return this.webApplicationContext.getBean(name); } else { return super.getAttribute(name); } }
@Override public Object getAttribute(String name) { Object value = _attributes.get(name); if (value == _nullValue) { return null; } if (value != null) { return value; } return super.getAttribute(name); }
@Override public Object getAttribute(String name) { if (AbstractHTTPDestination.SERVICE_REDIRECTION.equals(name)) { return "true"; } return super.getAttribute(name); } }
/** * 返回这个窗口的私有属性或portal主控请求对象的共同属性 * * @param name Name of the attribute to retrieve */ public Object getAttribute(String name) { Object value = null; synchronized (mutex) { if (deleteAttributes != null && deleteAttributes.contains(name)) { return null; } value = window.get(name); if (value == null) { value = super.getAttribute(name); } } return value; }
/** * {@inheritDoc} */ @Override public Object getAttribute(final String name) { // Synchronized access synchronized (mutex) { return super.getAttribute(name); } }
@Override public Object getAttribute(final String name) { Object attribute = super.getAttribute(name); return attribute; }
/** * Same as {@link #getAttribute(String)} but returns a default value if not found. * * @param name The request attribute name. * @param def The default value if the attribute doesn't exist. * @return The request attribute value. */ public Object getAttribute(String name, Object def) { Object o = super.getAttribute(name); return (o == null ? def : o); }
public Object getAttribute(String attributeName) { if (attributeName.equals(INCLUDE_SERVLET_PATH_ATTRIBUTE)) { return ""; } else if (attributeName.equals(INCLUDE_PATH_INFO_ATTRIBUTE)) { String servletPath = (String) super.getAttribute(INCLUDE_SERVLET_PATH_ATTRIBUTE); return servletPath; } return super.getAttribute(attributeName); } }
@Override public Object getAttribute(String name) { if (AbstractHTTPDestination.SERVICE_REDIRECTION.equals(name)) { return "true"; } return super.getAttribute(name); } }
@Override public Object getAttribute(String name) { if (AbstractHTTPDestination.SERVICE_REDIRECTION.equals(name)) { return "true"; } return super.getAttribute(name); } }
@Override public Object getAttribute(String name) { if (AUI_FORM_USE_NAMESPACE.equals(name)) { // Note: The portal-web/docroot/html/taglib/init.jsp file asks the value of this attribute. Need to return // false in order to ensure that the portlet namespace is not prepended to method names and element ids. return Boolean.FALSE.toString(); } else { return super.getAttribute(name); } }
@Override @Nullable public Object getAttribute(String name) { if ((this.explicitAttributes == null || !this.explicitAttributes.contains(name)) && (this.exposedContextBeanNames == null || this.exposedContextBeanNames.contains(name)) && this.webApplicationContext.containsBean(name)) { return this.webApplicationContext.getBean(name); } else { return super.getAttribute(name); } }
public Object getAttribute(String string) { if (string.equals(UPLOADED_FILES_ATTRIBUTE)) { return getFileItems(); } return super.getAttribute(string); }
@Override @SuppressWarnings("deprecation") public void removeAttribute(final String name) { if (Constants.HDIV_REQUEST_CONTEXT.equals(name)) { if (super.getAttribute(Constants.HDIV_REQUEST_CONTEXT) != null) { log.warn("The application is trying to remove an Hdiv internal attribute. The change will be avoided."); return; } } super.removeAttribute(name); }
@Override public Object getAttribute(String name) { this.checkState(); return super.getAttribute(name); }
@Override @SuppressWarnings("deprecation") public void setAttribute(final String name, final Object o) { if (Constants.HDIV_REQUEST_CONTEXT.equals(name)) { if (super.getAttribute(Constants.HDIV_REQUEST_CONTEXT) != null) { log.warn("The application is trying to modify an Hdiv internal attribute. The change will be avoided."); return; } } super.setAttribute(name, o); }
@Override public Object getAttribute(final String name) { if ( ResourceBundleProvider.BUNDLE_REQ_ATTR.equals(name) ) { if ( this.resourceBundle == null && this.bundleProvider != null) { this.resourceBundle = this.bundleProvider.getResourceBundle(this.getLocale()); } return this.resourceBundle; } return super.getAttribute(name); }