Package | Description |
---|---|
org.refcodes.net |
Use the types and definitions of this artifact when you are tired of defining
your own networking based basics, your own HTTP-status-code enumerations
(
HttpStatusCode or exceptions representing erroneous
HTTP state, or if you are tired of cookie handling, Header-Field processing
... and so on:
This artifact provides various types such as Cookie ,
FormFields , HeaderFields or
HttpMethod , which enable you to use such HTTP based
structures in a native Java way while having a tool at hand to bridge back
into the HTTP protocol world. |
org.refcodes.net.impls |
This package contains implementations of the types defined by this artifact.
|
Modifier and Type | Method and Description |
---|---|
default ResponseCookie |
ResponseHeaderFields.addCookie(String aHttpCookie)
Adds the cookie.
|
default ResponseCookie |
ResponseCookie.withDomain(String aDomain)
Sets the domain for this cookie.
|
default ResponseCookie |
ResponseCookie.withExpiresAfter(org.refcodes.time.TimeUnit aTimeUnit,
long aTime)
Builder method for the method
setExpiresAfter(TimeUnit, long) . |
default ResponseCookie |
ResponseCookie.withExpiresDate(Date aExpiresDate)
Sets the expiration date of this cookie and returns this instance as of
the Builder-Pattern.
|
default ResponseCookie |
ResponseCookie.withHttpCookie(String aCookie)
With http cookie.
|
default ResponseCookie |
ResponseCookie.withHttpOnly(boolean isHttpOnly)
Sets whether it be an HTTP only cookie.
|
default ResponseCookie |
ResponseCookie.withPath(String aPath)
Sets the path of the cookie.
|
default ResponseCookie |
ResponseCookie.withSecure(boolean isSecure)
Sets whether it be a secure HTTP cookie.
|
Modifier and Type | Class and Description |
---|---|
class |
ResponseCookieImpl
As of "HTTP cookies explained - NCZOnline": "...
|
Modifier and Type | Method and Description |
---|---|
protected ResponseCookie |
ResponseHeaderFieldsImpl.createCookie(String aHttpCookie) |
protected ResponseCookie |
ResponseHeaderFieldsImpl.createCookie(String aCookieName,
String aValue) |
Copyright © 2017. All rights reserved.