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 | Interface and Description |
---|---|
interface |
HeaderFields<C extends Cookie,B extends HeaderFields<C,B>>
The
HeaderFields reflect the structure of a HTTP header and may be
used to represent a HTTP header. |
interface |
HeaderFieldsAccessor<T extends HeaderFields<?,?>>
Provides an accessor for an Header-Fields property.
|
static interface |
HeaderFieldsAccessor.HeaderFieldsBuilder<T extends HeaderFields<?,?>,B extends HeaderFieldsAccessor.HeaderFieldsBuilder<T,B>>
Provides a mutator for an Header-Fields property.
|
static interface |
HeaderFieldsAccessor.HeaderFieldsMutator<T extends HeaderFields<?,?>>
Provides a mutator for an Header-Fields property.
|
static interface |
HeaderFieldsAccessor.HeaderFieldsProperty<T extends HeaderFields<?,?>>
Provides an Header-Fields property.
|
Modifier and Type | Interface and Description |
---|---|
interface |
RequestHeaderFields
The
RequestHeaderFields reflect the structure of a HTTP header and
may be used to represent a HTTP header. |
interface |
ResponseHeaderFields
The
ResponseHeaderFields reflect the structure of a HTTP header and
may be used to represent a HTTP header. |
Modifier and Type | Method and Description |
---|---|
default HeaderFields<C,B> |
HeaderFields.withAddCookie(C aCookie)
Builder method for the
addCookie(Cookie) method. |
default HeaderFields<C,B> |
HeaderFields.withAddCookie(String aCookieName,
String aValue)
Builder method for the
addCookie(String, String) method. |
default HeaderFields<C,B> |
HeaderFields.withAddTo(HeaderField aHeaderField,
List<String> aValues)
Builder method for
addTo(HeaderField, List) . |
default HeaderFields<C,B> |
HeaderFields.withAddTo(HeaderField aHeaderField,
String... aValues)
Builder method for
addTo(HeaderField, String ...) . |
default HeaderFields<C,B> |
HeaderFields.withAddTo(HeaderField aHeaderField,
String aValue)
Builder method for
addTo(HeaderField, String) . |
default HeaderFields<C,B> |
HeaderFields.withPut(HeaderField aHeaderField,
List<String> aValues)
Builder method for
put(HeaderField, List) . |
default HeaderFields<C,B> |
HeaderFields.withPut(HeaderField aHeaderField,
String... aValues)
Builder method for
put(HeaderField, String ...) . |
default HeaderFields<C,B> |
HeaderFields.withPut(HeaderField aHeaderField,
String aValue)
Builder method for
put(HeaderField, String) . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractHeaderFields<C extends Cookie,T extends HeaderFields<C,T>>
Abstract implementation of the
HeaderFields type. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractHeaderFields<C extends Cookie,T extends HeaderFields<C,T>>
Abstract implementation of the
HeaderFields type. |
class |
RequestHeaderFieldsImpl
Implementation of the
HeaderFields interface. |
class |
ResponseHeaderFieldsImpl
Implementation of the
HeaderFields interface. |
Modifier and Type | Method and Description |
---|---|
protected static void |
AbstractHeaderFields.toHeaderFields(Map<String,List<String>> aFromFields,
HeaderFields<?,?> aToFields)
Copies the provided "from" fields into the provided "to" fields.
|
Copyright © 2017. All rights reserved.