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 |
---|---|
HttpStatusCode |
HttpStatusCodeAccessor.getHttpStatusCode()
Retrieves the HTTP Status-Code from the HTTP Status-Code property.
|
HttpStatusCode |
HttpStatusRuntimeException.getStatusCode()
Gets the status code.
|
HttpStatusCode |
HttpStatusException.getStatusCode()
Gets the status code.
|
static HttpStatusCode |
HttpStatusCode.toHttpStatusCode(int aHttpStatusCode)
Determines the HTTP success code from the given value by evaluating the
getStatusCode() property. |
static HttpStatusCode |
HttpStatusCode.toHttpStatusCode(org.refcodes.mixin.StatusCodeAccessor<Integer> aHttpStatusCode)
Determines the HTTP success code from the given HTTP Status-Code property
by evaluating the
getStatusCode() property. |
static HttpStatusCode |
HttpStatusCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusCode[] |
HttpStatusCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpStatusCodeAccessor.HttpStatusCodeMutator.setHttpStatusCode(HttpStatusCode aStatusCode)
Sets the HTTP Status-Code for the HTTP Status-Code property.
|
default HttpServerResponse |
HttpServerResponse.withHttpStatusCode(HttpStatusCode aStatusCode)
With http status code.
|
B |
HttpStatusCodeAccessor.HttpStatusCodeBuilder.withHttpStatusCode(HttpStatusCode aStatusCode)
Sets the HTTP Status-Code for the HTTP Status-Code property.
|
Constructor and Description |
---|
HttpResponseException(HttpStatusCode aStatusCode,
String message)
Instantiates a new http response exception.
|
HttpResponseException(HttpStatusCode aStatusCode,
String aMessage,
String aErrorCode)
Instantiates a new http response exception.
|
HttpResponseException(HttpStatusCode aStatusCode,
String message,
Throwable cause)
Instantiates a new http response exception.
|
HttpResponseException(HttpStatusCode aStatusCode,
String aMessage,
Throwable aCause,
String aErrorCode)
Instantiates a new http response exception.
|
HttpResponseException(HttpStatusCode aStatusCode,
Throwable cause)
Instantiates a new http response exception.
|
HttpResponseException(HttpStatusCode aStatusCode,
Throwable aCause,
String aErrorCode)
Instantiates a new http response exception.
|
HttpResponseRuntimeException(HttpStatusCode aStatusCode,
String message)
Instantiates a new http response runtime exception.
|
HttpResponseRuntimeException(HttpStatusCode aStatusCode,
String aMessage,
String aErrorCode)
Instantiates a new http response runtime exception.
|
HttpResponseRuntimeException(HttpStatusCode aStatusCode,
String message,
Throwable cause)
Instantiates a new http response runtime exception.
|
HttpResponseRuntimeException(HttpStatusCode aStatusCode,
String aMessage,
Throwable aCause,
String aErrorCode)
Instantiates a new http response runtime exception.
|
HttpResponseRuntimeException(HttpStatusCode aStatusCode,
Throwable cause)
Instantiates a new http response runtime exception.
|
HttpResponseRuntimeException(HttpStatusCode aStatusCode,
Throwable aCause,
String aErrorCode)
Instantiates a new http response runtime exception.
|
HttpStatusException(HttpStatusCode aStatusCode,
String message)
Instantiates a new http status exception.
|
HttpStatusException(HttpStatusCode aStatusCode,
String aMessage,
String aErrorCode)
Instantiates a new http status exception.
|
HttpStatusException(HttpStatusCode aStatusCode,
String message,
Throwable cause)
Instantiates a new http status exception.
|
HttpStatusException(HttpStatusCode aStatusCode,
String aMessage,
Throwable aCause,
String aErrorCode)
Instantiates a new http status exception.
|
HttpStatusException(HttpStatusCode aStatusCode,
Throwable cause)
Instantiates a new http status exception.
|
HttpStatusException(HttpStatusCode aStatusCode,
Throwable aCause,
String aErrorCode)
Instantiates a new http status exception.
|
HttpStatusRuntimeException(HttpStatusCode aStatusCode,
String message)
Instantiates a new http status runtime exception.
|
HttpStatusRuntimeException(HttpStatusCode aStatusCode,
String aMessage,
String aErrorCode)
Instantiates a new http status runtime exception.
|
HttpStatusRuntimeException(HttpStatusCode aStatusCode,
String message,
Throwable cause)
Instantiates a new http status runtime exception.
|
HttpStatusRuntimeException(HttpStatusCode aStatusCode,
String aMessage,
Throwable aCause,
String aErrorCode)
Instantiates a new http status runtime exception.
|
HttpStatusRuntimeException(HttpStatusCode aStatusCode,
Throwable cause)
Instantiates a new http status runtime exception.
|
HttpStatusRuntimeException(HttpStatusCode aStatusCode,
Throwable aCause,
String aErrorCode)
Instantiates a new http status runtime exception.
|
Modifier and Type | Field and Description |
---|---|
protected HttpStatusCode |
HttpResponseImpl._httpStatusCode |
Modifier and Type | Method and Description |
---|---|
HttpStatusCode |
HttpResponseImpl.getHttpStatusCode() |
Modifier and Type | Method and Description |
---|---|
void |
HttpServerResponseImpl.setHttpStatusCode(HttpStatusCode aStatusCode) |
Constructor and Description |
---|
HttpClientResponseImpl(HttpStatusCode aHttpStatusCode,
ResponseHeaderFields aHeaderFields,
InputStream aHttpInputStream,
MediaTypeFactoryLookup aMediaTypeFactoryLookup)
Constructs a
HttpClientResponse with all required attributes. |
HttpResponseImpl(HttpStatusCode aHttpStatusCode)
Constructs a
HttpResponse with all required attributes. |
HttpResponseImpl(HttpStatusCode aHttpStatusCode,
ResponseHeaderFields aHeaderFields)
Constructs a
HttpResponse with all required attributes. |
HttpServerResponseImpl(HttpStatusCode aHttpStatusCode,
MediaTypeFactoryLookup aMediaTypeFactoryLookup)
Instantiates a new http server response impl.
|
Copyright © 2017. All rights reserved.