Search in sources :

Example 1 with ServletCookies

use of io.micronaut.servlet.http.ServletCookies in project micronaut-gcp by micronaut-projects.

the class GoogleFunctionHttpRequest method getCookies.

@NonNull
@Override
public Cookies getCookies() {
    ServletCookies cookies = this.cookies;
    if (cookies == null) {
        synchronized (this) {
            // double check
            cookies = this.cookies;
            if (cookies == null) {
                cookies = new ServletCookies(getPath(), getHeaders(), ConversionService.SHARED);
                this.cookies = cookies;
            }
        }
    }
    return cookies;
}
Also used : ServletCookies(io.micronaut.servlet.http.ServletCookies) NonNull(io.micronaut.core.annotation.NonNull)

Aggregations

NonNull (io.micronaut.core.annotation.NonNull)1 ServletCookies (io.micronaut.servlet.http.ServletCookies)1