Cookie cookie = routeContext.getResponse().getCookie(cookieName); if (cookie != null && !StringUtils.isNullOrEmpty(cookie.getValue())) { return getLanguageOrDefault(cookie.getValue());
@Override public void addResponseCookie(Cookie cookie) { getResponse().cookie(cookie.getPath(), cookie.getDomain(), cookie.getName(), cookie.getValue(), cookie.getMaxAge(), cookie.isSecure() ); javax.servlet.http.Cookie addedCookie = getResponse().getCookie(cookie.getName()); addedCookie.setHttpOnly(cookie.isHttpOnly()); addedCookie.setComment(cookie.getComment()); }