Tabnine Logo
Cookie.setPath
Code IndexAdd Tabnine to your IDE (free)

How to use
setPath
method
in
org.pac4j.core.context.Cookie

Best Java code snippets using org.pac4j.core.context.Cookie.setPath (Showing top 9 results out of 315)

origin: pippo-java/pippo

@Override
public Collection<Cookie> getRequestCookies() {
  return getRequest().getCookies().stream().map(c -> {
    Cookie cookie = new Cookie(c.getName(), c.getValue());
    cookie.setComment(c.getComment());
    cookie.setSecure(c.getSecure());
    cookie.setPath(c.getPath());
    cookie.setHttpOnly(c.isHttpOnly());
    cookie.setDomain(c.getDomain());
    cookie.setMaxAge(c.getMaxAge());
    cookie.setVersion(c.getVersion());
    return cookie;
  }).collect(Collectors.toList());
}
origin: org.pac4j/vertx-pac4j

@Override
public Collection<Cookie> getRequestCookies() {
  return routingContext.cookies().stream().map(cookie -> {
    final Cookie p4jCookie = new Cookie(cookie.getName(), cookie.getValue());
    p4jCookie.setDomain(cookie.getDomain());
    p4jCookie.setPath(cookie.getPath());
    return p4jCookie;
  }).collect(Collectors.toList());
}
origin: pac4j/vertx-pac4j

@Override
public Collection<Cookie> getRequestCookies() {
  return routingContext.cookies().stream().map(cookie -> {
    final Cookie p4jCookie = new Cookie(cookie.getName(), cookie.getValue());
    p4jCookie.setDomain(cookie.getDomain());
    p4jCookie.setPath(cookie.getPath());
    return p4jCookie;
  }).collect(Collectors.toList());
}
origin: pac4j/jax-rs-pac4j

@Override
public Collection<Cookie> getRequestCookies() {
  return requestContext.getCookies().values().stream().map(c -> {
    Cookie nc = new Cookie(c.getName(), c.getValue());
    nc.setDomain(c.getDomain());
    nc.setPath(c.getPath());
    nc.setVersion(c.getVersion());
    return nc;
  }).collect(Collectors.toList());
}
origin: pac4j/undertow-pac4j

@Override
public Collection<Cookie> getRequestCookies() {
  final Collection<io.undertow.server.handlers.Cookie> uCookies = exchange.getRequestCookies().values();
  final List<Cookie> cookies = new ArrayList<>(uCookies.size());
  for (final io.undertow.server.handlers.Cookie uCookie : uCookies) {
    final Cookie cookie = new Cookie(uCookie.getName(), uCookie.getValue());
    cookie.setComment(uCookie.getComment());
    cookie.setDomain(uCookie.getDomain());
    cookie.setPath(uCookie.getPath());
    cookie.setMaxAge(uCookie.getMaxAge() == null ? -1 : uCookie.getMaxAge());
    cookie.setSecure(uCookie.isSecure());
    cookie.setHttpOnly(uCookie.isHttpOnly());
    cookies.add(cookie);
  }
  return cookies;
}
origin: io.ratpack/ratpack-pac4j

@Override
public Collection<Cookie> getRequestCookies() {
 final List<Cookie> newCookies = new ArrayList<>();
 final Set<io.netty.handler.codec.http.cookie.Cookie> cookies = request.getCookies();
 for (final io.netty.handler.codec.http.cookie.Cookie cookie : cookies) {
  final Cookie newCookie = new Cookie(cookie.name(), cookie.value());
  newCookie.setDomain(cookie.domain());
  newCookie.setPath(cookie.path());
  newCookie.setMaxAge((int) cookie.maxAge());
  newCookie.setSecure(cookie.isSecure());
  newCookie.setHttpOnly(cookie.isHttpOnly());
  newCookies.add(newCookie);
 }
 return newCookies;
}
origin: org.pac4j/play-pac4j-java

@Override
public Collection<Cookie> getRequestCookies() {
  final List<Cookie> cookies = new ArrayList<>();
  final Http.Cookies httpCookies = request.cookies();
  httpCookies.forEach(httpCookie -> {
    final Cookie cookie = new Cookie(httpCookie.name(), httpCookie.value());
    cookie.setDomain(httpCookie.domain());
    cookie.setHttpOnly(httpCookie.httpOnly());
    cookie.setMaxAge(httpCookie.maxAge());
    cookie.setPath(httpCookie.path());
    cookie.setSecure(httpCookie.secure());
    cookies.add(cookie);
  });
  return cookies;
}
origin: pac4j/play-pac4j

@Override
public Collection<Cookie> getRequestCookies() {
  final List<Cookie> cookies = new ArrayList<>();
  final Http.Cookies httpCookies = request.cookies();
  httpCookies.forEach(httpCookie -> {
    final Cookie cookie = new Cookie(httpCookie.name(), httpCookie.value());
    if(httpCookie.domain() != null) {
      cookie.setDomain(httpCookie.domain());
    }
    cookie.setHttpOnly(httpCookie.httpOnly());
    if(httpCookie.maxAge() != null) {
      cookie.setMaxAge(httpCookie.maxAge());
    }
    cookie.setPath(httpCookie.path());
    cookie.setSecure(httpCookie.secure());
    cookies.add(cookie);
  });
  return cookies;
}
origin: pac4j/play-pac4j

@Override
public Collection<Cookie> getRequestCookies() {
  final List<Cookie> cookies = new ArrayList<>();
  final Http.Cookies httpCookies = request.cookies();
  httpCookies.forEach(httpCookie -> {
    final Cookie cookie = new Cookie(httpCookie.name(), httpCookie.value());
    if(httpCookie.domain() != null) {
      cookie.setDomain(httpCookie.domain());
    }
    cookie.setHttpOnly(httpCookie.httpOnly());
    if(httpCookie.maxAge() != null) {
      cookie.setMaxAge(httpCookie.maxAge());
    }
    cookie.setPath(httpCookie.path());
    cookie.setSecure(httpCookie.secure());
    cookies.add(cookie);
  });
  return cookies;
}
org.pac4j.core.contextCookiesetPath

Popular methods of Cookie

  • <init>
  • getValue
  • getName
  • setDomain
  • setHttpOnly
  • setSecure
  • getDomain
  • getMaxAge
  • getPath
  • isHttpOnly
  • isSecure
  • setMaxAge
  • isSecure,
  • setMaxAge,
  • getComment,
  • setComment,
  • setVersion,
  • getVersion

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Collectors (java.util.stream)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now