return getExternalContext().getRequestCookieMap();
return getExternalContext().getRequestCookieMap();
/** * {@inheritDoc} */ public Map<String, Object> getRequestCookieMap() { return wrapped.getRequestCookieMap(); }
/** * <p>Return the cookie that came from the browser, if any.</p> */ private Cookie getCookie(ExternalContext extContext) { Cookie result = null; result = (Cookie) extContext.getRequestCookieMap().get(FLASH_COOKIE_NAME); return result; }
/** * <p>Return the cookie that came from the browser, if any.</p> */ private Cookie getCookie(ExternalContext extContext) { Cookie result = null; result = (Cookie) extContext.getRequestCookieMap().get(FLASH_COOKIE_NAME); return result; }
/** * See the {@link WebContext}'s Javadoc. * * @return Map of Cookies. * @since Chain 1.1 */ public Map getCookies() { return (context.getExternalContext().getRequestCookieMap()); }
protected Cookie getCookie(String name) { return (Cookie) FacesContext.getCurrentInstance().getExternalContext() .getRequestCookieMap().get(name); }
private Cookie getCookie() { FacesContext ctx = FacesContext.getCurrentInstance(); if (ctx != null) { return (Cookie) ctx.getExternalContext().getRequestCookieMap().get(COOKIE_NAME); } else { return null; } } }
public javax.servlet.http.Cookie[] getCookies() { Cookie[] cookies = new Cookie[0]; Map cookieMap = facesContext.getExternalContext().getRequestCookieMap(); if( cookieMap == null || cookieMap.values() == null ){ return cookies; } return (Cookie[]) cookieMap.values().toArray(cookies); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestCookieMap} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestCookieMap() */ @Override public Map<String, Object> getRequestCookieMap() { return getWrapped().getRequestCookieMap(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestCookieMap} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestCookieMap() */ @Override public Map<String, Object> getRequestCookieMap() { return getWrapped().getRequestCookieMap(); }
@Override public Map<String, Object> getRequestCookieMap() { return getWrapped().getRequestCookieMap(); }
@Override public Object getValue(ELContext context) { return externalContext(context).getRequestCookieMap(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestCookieMap} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestCookieMap() */ @Override public Map<String, Object> getRequestCookieMap() { return getWrapped().getRequestCookieMap(); }
/** * @see Faces#getRequestCookie(String) */ public static String getRequestCookie(FacesContext context, String name) { Cookie cookie = (Cookie) context.getExternalContext().getRequestCookieMap().get(name); return (cookie != null) ? Utils.decodeURL(cookie.getValue()) : null; }
@Override public Object getValue(ELContext context) { return externalContext(context).getRequestCookieMap(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestCookieMap} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestCookieMap() */ @Override public Map<String, Object> getRequestCookieMap() { return getWrapped().getRequestCookieMap(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getRequestCookieMap} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#getRequestCookieMap() */ @Override public Map<String, Object> getRequestCookieMap() { return getWrapped().getRequestCookieMap(); }
@Produces @Named("cookie") @RequestCookieMap @FacesScoped public Map<String, Object> getRequestCookieMap() { return FacesContext.getCurrentInstance().getExternalContext().getRequestCookieMap(); }
public RequestCookieMapProducer() { super.name("cookie") .scope(RequestScoped.class) .qualifiers(new RequestCookieMapAnnotationLiteral()) .types( new ParameterizedTypeImpl(Map.class, new Type[]{String.class, Object.class}), Map.class, Object.class) .beanClass(Map.class) .create(e -> FacesContext.getCurrentInstance().getExternalContext().getRequestCookieMap()); }