@Override public Enumeration<String> getAttributeNames() { return ((PortletRequest)wrapped).getAttributeNames(); }
private void _initAttributes() { if (_attributes != null) { return; } _attributes = new HashMap<>(); Enumeration<String> enumeration = _portletRequest.getAttributeNames(); while (enumeration.hasMoreElements()) { String name = enumeration.nextElement(); Object value = _portletRequest.getAttribute(name); _attributes.put(name, value); } }
/** * @see javax.servlet.ServletRequest#getAttributeNames() */ public Enumeration getAttributeNames() { return portletRequest.getAttributeNames(); }
@Override @SuppressWarnings("unchecked") protected Enumeration<String> getAttributeNames() { return _portletRequest.getAttributeNames(); }
/** * The default behavior of this method is to call * <code>getAttributeNames()</code> on the wrapped request object. */ public Enumeration<String> getAttributeNames() { return request.getAttributeNames(); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public int size() { int n = 0; Enumeration<String> keys = request.getAttributeNames(); while (keys.hasMoreElements()) { keys.nextElement(); n++; } return (n); }
/** {@inheritDoc} */ public int size() { int n = 0; Enumeration<String> keys = request.getAttributeNames(); while (keys.hasMoreElements()) { keys.nextElement(); n++; } return (n); }
public int size() { int n = 0; Enumeration keys = request.getAttributeNames(); while (keys.hasMoreElements()) { keys.nextElement(); n++; } return (n); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public Set<String> keySet() { Set<String> set = new HashSet<String>(); Enumeration<String> keys = request.getAttributeNames(); while (keys.hasMoreElements()) { set.add(keys.nextElement()); } return (set); }
public Set keySet() { Set set = new HashSet(); Enumeration keys = request.getAttributeNames(); while (keys.hasMoreElements()) { set.add(keys.nextElement()); } return (set); }
/** {@inheritDoc} */ public Set<String> keySet() { Set<String> set = new HashSet<String>(); Enumeration<String> keys = request.getAttributeNames(); while (keys.hasMoreElements()) { set.add(keys.nextElement()); } return (set); }
@SuppressWarnings("unchecked") private List<String> getRequestAttributes(PortletRequest request) { List<String> requestAttributeNames = Collections.list((Enumeration<String>) request.getAttributeNames()); // place on the request for use here and in the servletRequestAttributeListener if (requestAttributeNames != null) { request.setAttribute(PREEXISTING_ATTRIBUTE_NAMES, requestAttributeNames); } return requestAttributeNames; }
public Collection values() { List list = new ArrayList(); Enumeration keys = request.getAttributeNames(); while (keys.hasMoreElements()) { list.add(request.getAttribute((String) keys.nextElement())); } return (list); }
public static Enumeration getAttributeNames() { PortletRequest portletRequest = getPortletRequest(); if (portletRequest == null) { throw new IllegalStateException( "The request is not PortletRequest."); } return portletRequest.getAttributeNames(); }
protected void createExcludedAttributeList(PortletRequest request) { // create excluded list ArrayList excludedNameList = new ArrayList(); Enumeration enu = request.getAttributeNames(); while (enu.hasMoreElements()) { excludedNameList.add(enu.nextElement()); } // reserved names excludedNameList.add(EXCLUDED_ATTRIBUTE_LIST); excludedNameList.add(JsfConstants.FACES_CONTEXT); request.setAttribute(EXCLUDED_ATTRIBUTE_LIST, excludedNameList); }
/** * Removes all attributes from the request as well as clears entries in this * map. */ public void clear() { entries = null; Enumeration keys = request.getAttributeNames(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); request.removeAttribute(key); } }
/** {@inheritDoc} */ public Collection<Object> values() { List<Object> list = new ArrayList<Object>(); Enumeration<String> keys = request.getAttributeNames(); while (keys.hasMoreElements()) { list.add(request.getAttribute(keys.nextElement())); } return (list); }
public static void dumpRequestAttributes(final StringBuffer sb, final PortletRequest request, final String lf, final String indent) { for (final Iterator it = toSortedSet(request.getAttributeNames()) .iterator(); it.hasNext();) { final String name = (String) it.next(); final Object attr = request.getAttribute(name); sb.append(indent); sb.append("[request]").append(name).append("=").append(attr); sb.append(lf); } }
public Set entrySet() { Set set = new HashSet(); Enumeration keys = request.getAttributeNames(); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, request.getAttribute(key), true)); } return (set); }
/** {@inheritDoc} */ public Set<Map.Entry<String, Object>> entrySet() { Set<Map.Entry<String, Object>> set = new HashSet<Map.Entry<String, Object>>(); Enumeration<String> keys = request.getAttributeNames(); String key; while (keys.hasMoreElements()) { key = keys.nextElement(); set.add(new MapEntry<String, Object>(key, request.getAttribute(key), true)); } return (set); }