Skip navigation links
A B C D E F G H I J L M N O P R S T U V W 

A

AbstractComplexHeaderList - Class in org.dmfs.httpclientinterfaces.headers.impl
An abstract base class for complex HeaderLists.
AbstractComplexHeaderList() - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.AbstractComplexHeaderList
Empty constructor.
AbstractMethod - Class in org.dmfs.httpclientinterfaces.methods
An abstract HttpMethod.
AbstractMethod(String) - Constructor for class org.dmfs.httpclientinterfaces.methods.AbstractMethod
Instantiates a new HttpMethod with the given verb.
ACCEPTED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 202 Accepted
anchor() - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
Returns the anchor if the link has any.
append(Header<?>...) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderList
Returns a new HeaderList that also contains the given Headers.
append(HeaderList) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderList
Returns a new HeaderList that also contains the Headers in the given HeaderList.
append(Header<?>...) - Method in class org.dmfs.httpclientinterfaces.headers.impl.AbstractComplexHeaderList
 
append(HeaderList) - Method in class org.dmfs.httpclientinterfaces.headers.impl.AbstractComplexHeaderList
 
append(Header<?>...) - Method in class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
 
append(HeaderList) - Method in class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
 
append(Header<?>...) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SingleHeaderList
 
append(HeaderList) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SingleHeaderList
 
ArrayHeaderList - Class in org.dmfs.httpclientinterfaces.headers.impl
A HeaderList that contains Headers provided in an array.
ArrayHeaderList(Header<?>...) - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.ArrayHeaderList
Creates a new HeaderList that contains the provided Headers.
attribute - Variable in class org.dmfs.httpclientinterfaces.ContentType.Parameter
 

B

BAD_GATEWAY - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 502 Bad Gateway
BAD_REQUEST - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 400 Bad Request
BufferedRequest<T> - Class in org.dmfs.httpclientinterfaces.requestutils
A buffered request wrapper.
BufferedRequest(HttpRequest<T>) - Constructor for class org.dmfs.httpclientinterfaces.requestutils.BufferedRequest
Creates a BufferedRequest wrapper for the given request with an "unlimited" buffer size.
BufferedRequest(HttpRequest<T>, int) - Constructor for class org.dmfs.httpclientinterfaces.requestutils.BufferedRequest
Creates a BufferedRequest wrapper for the given request using the given maximum buffer size.
BufferedRequestEntity - Class in org.dmfs.httpclientinterfaces.requestutils
A buffered request entity wrapper.
BufferedRequestEntity(HttpRequestEntity) - Constructor for class org.dmfs.httpclientinterfaces.requestutils.BufferedRequestEntity
 
BufferedRequestEntity(HttpRequestEntity, int) - Constructor for class org.dmfs.httpclientinterfaces.requestutils.BufferedRequestEntity
 
bufferOverflow() - Method in class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
Returns whether there was a buffer overflow, i.e. the content written was larger than the maximum buffer size.
ByteArrayOutputStream - Class in org.dmfs.httpclientinterfaces.requestutils
An OutputStream that buffers all written content in byte arrays.
ByteArrayOutputStream() - Constructor for class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
Creates an unlimited ByteArrayOutputStream using #MIN_CHUNK_SIZE as minimal chunk size.
ByteArrayOutputStream(int) - Constructor for class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
Creates an unlimited ByteArrayOutputStream using the given minimal chunk size.
ByteArrayOutputStream(int, int) - Constructor for class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
Creates a ByteArrayOutputStream that's limited in size using the given minimal chunk size.

C

CharSet(String) - Static method in class org.dmfs.httpclientinterfaces.ContentType
 
ClientErrorException - Exception in org.dmfs.httpclientinterfaces.exceptions
This is a special UnexpectedResponseException for 4xx status codes (i.e. client errors).
ClientErrorException(HttpStatus) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.ClientErrorException
Create a new ClientErrorException.
ClientErrorException(HttpStatus, String) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.ClientErrorException
Create a new ClientErrorException with a message.
close() - Method in class org.dmfs.httpclientinterfaces.utils.ConsumingInputStream
 
CONFLICT - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 409 Conflict
CONNECT - Static variable in interface org.dmfs.httpclientinterfaces.HttpMethod
HTTP Method CONNECT
ConsumingInputStream - Class in org.dmfs.httpclientinterfaces.utils
An InputStream wrapper that tries to consume all unread content when it's about to be closed.
ConsumingInputStream(InputStream) - Constructor for class org.dmfs.httpclientinterfaces.utils.ConsumingInputStream
 
contains(HeaderType<?>) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderList
Returns whether this HeaderSet contains a Header of the given HeaderType.
contains(Header<?>) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderList
Returns whether this HeaderSet contains the given Header.
contains(HeaderType<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.ArrayHeaderList
 
contains(Header<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.ArrayHeaderList
 
contains(HeaderType<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
 
contains(Header<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
 
contains(HeaderType<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.JoinedHeaderList
 
contains(Header<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.JoinedHeaderList
 
contains(HeaderType<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.RemoveHeaderList
 
contains(Header<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.RemoveHeaderList
 
contains(HeaderType<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SingleHeaderList
 
contains(Header<?>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SingleHeaderList
 
contentLength() - Method in interface org.dmfs.httpclientinterfaces.HttpRequestEntity
Returns the length of the content or a negative number if it's not known.
contentLength() - Method in interface org.dmfs.httpclientinterfaces.HttpResponseEntity
Returns the length of the content or a negative number if the length is not known.
contentLength() - Method in class org.dmfs.httpclientinterfaces.requestutils.BufferedRequestEntity
 
contentLength() - Method in class org.dmfs.httpclientinterfaces.requestutils.EmptyHttpRequestEntity
 
contentStream() - Method in interface org.dmfs.httpclientinterfaces.HttpResponseEntity
Returns the content InputStream of the entity.
ContentType - Class in org.dmfs.httpclientinterfaces
Wrapper for content types as defined in RFC 2045 Section 5 At present this class doesn't support multiple parameters with the same name.
ContentType(String) - Constructor for class org.dmfs.httpclientinterfaces.ContentType
Create a new ContentType from a content type string.
ContentType(String, ContentType.Parameter...) - Constructor for class org.dmfs.httpclientinterfaces.ContentType
Creates a new ContentType object from the given string representation, while adding or overriding ContentType.Parameters.
ContentType(ContentType, ContentType.Parameter...) - Constructor for class org.dmfs.httpclientinterfaces.ContentType
Clone constructor that adds/overrides ContentType.Parameters.
contentType() - Method in interface org.dmfs.httpclientinterfaces.HttpRequestEntity
Returns the content type of the entity if known.
contentType() - Method in interface org.dmfs.httpclientinterfaces.HttpResponseEntity
Returns the content type of the entity.
contentType() - Method in class org.dmfs.httpclientinterfaces.requestutils.BufferedRequestEntity
 
contentType() - Method in class org.dmfs.httpclientinterfaces.requestutils.EmptyHttpRequestEntity
 
ContentType.Parameter - Class in org.dmfs.httpclientinterfaces
A content type parameter as defined in RFC 2045 Section 5.
ContentTypeListHeaderValueConverter - Class in org.dmfs.httpclientinterfaces.headers.impl
HeaderValueConverter for header values that consist of a list of ContentTypes.
ContentTypeListHeaderValueConverter() - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.ContentTypeListHeaderValueConverter
 
CONTINUE - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 100 Continue
count() - Method in exception org.dmfs.httpclientinterfaces.exceptions.TooManyRedirectsException
Get the number of redirects that has led to this exception.
CREATED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 201 Created

D

DefaultResponseHandler<T> - Class in org.dmfs.httpclientinterfaces.requestutils
An default response handler that doesn't handle the response but throws the most appropriate Exception, based on the response status code.
DefaultResponseHandler() - Constructor for class org.dmfs.httpclientinterfaces.requestutils.DefaultResponseHandler
 
DELETE - Static variable in interface org.dmfs.httpclientinterfaces.HttpMethod
HTTP Method DELETE

E

EmptyHeaderList - Class in org.dmfs.httpclientinterfaces.headers.impl
A trivial HeaderList that doesn't contain any Headers.
EmptyHeaderList() - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
 
EmptyHttpRequestEntity - Class in org.dmfs.httpclientinterfaces.requestutils
equals(Object) - Method in class org.dmfs.httpclientinterfaces.ContentType
 
equals(Object) - Method in class org.dmfs.httpclientinterfaces.ContentType.Parameter
 
equals(Object) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SimpleHeaderType
 
equals(Object) - Method in class org.dmfs.httpclientinterfaces.HttpStatus
 
equals(Object) - Method in class org.dmfs.httpclientinterfaces.methods.AbstractMethod
 
equalsAny(ContentType...) - Method in class org.dmfs.httpclientinterfaces.ContentType
Returns whether this ContentType equals any of the given content types.
execute(URI, HttpRequest<T>) - Method in interface org.dmfs.httpclientinterfaces.HttpRequestExecutor
Sends the given HttpRequest to the given URI and returns the result.
execute(URI, HttpRequest<T>, OnRedirectCallback) - Method in interface org.dmfs.httpclientinterfaces.HttpRequestExecutor
Sends the given HttpRequest to the given URI and returns the result.
execute(URI, HttpRequest<T>, OnResponseCallback<T>) - Method in interface org.dmfs.httpclientinterfaces.HttpRequestExecutor
Sends the given HttpRequest to the given URI and calls an OnResponseCallback with the result.
execute(URI, HttpRequest<T>, OnResponseCallback<T>, OnRedirectCallback) - Method in interface org.dmfs.httpclientinterfaces.HttpRequestExecutor
Sends the given HttpRequest to the given URI and calls an OnResponseCallback with the result.
EXPECTATION_FAILED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus

F

FAILED_DEPENDENCY - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 424 Failed Dependency (WebDAV)
FilteringIterator<E> - Class in org.dmfs.httpclientinterfaces.utils
An Iterator that returns the elements of another Iterator, possibly filtering out some of the elements.
FilteringIterator(Iterator<E>, FilteringIterator.IteratorFilter<E>) - Constructor for class org.dmfs.httpclientinterfaces.utils.FilteringIterator
 
FilteringIterator.IteratorFilter<E> - Interface in org.dmfs.httpclientinterfaces.utils
 
firstHeader(HeaderType<T>) - Method in interface org.dmfs.httpclientinterfaces.HttpResponse
Returns the first Header of the given HeaderType.
firstRawParameter(String) - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
Returns the String representation of the first occurrence of the given parameter.
followRedirect(HttpStatus, URI, URI) - Method in interface org.dmfs.httpclientinterfaces.OnRedirectCallback
This is called when a server has sent some sort of redirect.
followRedirect(HttpStatus, URI, URI) - Method in class org.dmfs.httpclientinterfaces.requestutils.FollowSecureRedirectCallback
 
followRedirect(HttpStatus, URI, URI) - Method in class org.dmfs.httpclientinterfaces.requestutils.NeverFollowRedirectCallback
 
FollowSecureRedirectCallback - Class in org.dmfs.httpclientinterfaces.requestutils
An OnRedirectCallback that follows only secure redirects.
FORBIDDEN - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 403 Forbidden
FOUND - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
fromStatusCode(int) - Static method in class org.dmfs.httpclientinterfaces.HttpStatus
Returns the HttpStatus having the given status code.
fromStatusLine(String) - Static method in class org.dmfs.httpclientinterfaces.HttpStatus
Parse an HTTP status line for the status code.

G

GATEWAY_TIMEOUT - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 504 Gateway Timeout
GET - Static variable in interface org.dmfs.httpclientinterfaces.HttpMethod
HTTP Method GET
getCharset() - Method in class org.dmfs.httpclientinterfaces.ContentType
Returns the value of the charset parameter or null if there is no charset parameter.
getCharset(String) - Method in class org.dmfs.httpclientinterfaces.ContentType
Returns the value of the charset parameter or default if there is no charset parameter.
getInstance() - Static method in class org.dmfs.httpclientinterfaces.requestutils.DefaultResponseHandler
 
getInstance() - Static method in class org.dmfs.httpclientinterfaces.requestutils.FollowSecureRedirectCallback
Returns an instance of FollowSecureRedirectCallback.
getInstance() - Static method in class org.dmfs.httpclientinterfaces.requestutils.NeverFollowRedirectCallback
Returns an instance of NeverFollowRedirectCallback.
GONE - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 410 Gone

H

handleResponse(HttpResponse) - Method in interface org.dmfs.httpclientinterfaces.HttpResponseHandler
Actually handles the HttpResponse.
handleResponse(HttpResponse) - Method in class org.dmfs.httpclientinterfaces.requestutils.DefaultResponseHandler
 
hashCode() - Method in class org.dmfs.httpclientinterfaces.ContentType
 
hashCode() - Method in class org.dmfs.httpclientinterfaces.ContentType.Parameter
 
hashCode() - Method in class org.dmfs.httpclientinterfaces.headers.impl.SimpleHeaderType
 
hashCode() - Method in class org.dmfs.httpclientinterfaces.HttpStatus
 
hashCode() - Method in class org.dmfs.httpclientinterfaces.methods.AbstractMethod
 
hasHeader(HeaderType<T>) - Method in interface org.dmfs.httpclientinterfaces.HttpResponse
Checks whether the response contains at least one header of the given HeaderType.
hasNext() - Method in class org.dmfs.httpclientinterfaces.utils.FilteringIterator
 
hasNext() - Method in class org.dmfs.httpclientinterfaces.utils.SerialIterator
 
hasParameter(String) - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
Checks if a specific parameter is present in the Link.
HEAD - Static variable in interface org.dmfs.httpclientinterfaces.HttpMethod
HTTP Method HEAD
Header<ValueType> - Interface in org.dmfs.httpclientinterfaces.headers
Interface of an HTTP header.
header(ValueType) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderType
Factory method to create Headers of this type from a value.
header(ValueType) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SimpleHeaderType
 
headerFromString(String) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderType
Factory method to create Headers of this type from the given String representation.
headerFromString(String) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SimpleHeaderType
 
HeaderList - Interface in org.dmfs.httpclientinterfaces.headers
Interface of an immutable instance that holds a list of Headers.
headerName() - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderType
Returns the name of the header.
headerName() - Method in class org.dmfs.httpclientinterfaces.headers.impl.SimpleHeaderType
 
headers() - Method in interface org.dmfs.httpclientinterfaces.HttpRequest
Returns a HeaderList containing the Headers to send with the request.
headers(HeaderType<T>) - Method in interface org.dmfs.httpclientinterfaces.HttpResponse
Returns an Iterator that iterates all Headers of the given HeaderType.
headers() - Method in class org.dmfs.httpclientinterfaces.requestutils.BufferedRequest
 
headersByType(HeaderType<T>) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderList
Get an Iterator of all Headers of the given HeaderType in this list.
headersByType(HeaderType<T>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.AbstractComplexHeaderList
 
headersByType(HeaderType<T>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
 
headersByType(HeaderType<T>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SingleHeaderList
 
headerType() - Method in interface org.dmfs.httpclientinterfaces.headers.Header
Returns the HeaderType of this header.
HeaderType<ValueType> - Interface in org.dmfs.httpclientinterfaces.headers
Represents a header type.
HeaderValueConverter<ValueType> - Interface in org.dmfs.httpclientinterfaces.headers
Helper convert header values to Objects and back to their String representations.
hrefLang() - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
Return an iterator of all hreflang parameters present in the link.
HTTP_VERSION_NOT_SUPPORTED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HttpException - Exception in org.dmfs.httpclientinterfaces.exceptions
An Exception that's thrown when an error at HTTP level occurred.
HttpException(String) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.HttpException
Create a new HttpException with a message.
HttpException(String, Throwable) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.HttpException
Create a new HttpException with a message and a cause.
HttpMethod - Interface in org.dmfs.httpclientinterfaces
Represents an HTTP method and provides static members for HTTP methods defined in RFC 7231, section 4.3 and RFC 5789
HttpRequest<T> - Interface in org.dmfs.httpclientinterfaces
Defines an interface of an HTTP request.
HttpRequestEntity - Interface in org.dmfs.httpclientinterfaces
Defines an interface of an HTTP message request body entity.
HttpRequestExecutor - Interface in org.dmfs.httpclientinterfaces
The interface of an instance that knows how to execute an HttpRequest.
HttpResponse - Interface in org.dmfs.httpclientinterfaces
An interface of an HTTP response object.
HttpResponseEntity - Interface in org.dmfs.httpclientinterfaces
Defines an interface of an HTTP response message body entity.
HttpResponseHandler<T> - Interface in org.dmfs.httpclientinterfaces
An interface of a handler for responses.
HttpStatus - Class in org.dmfs.httpclientinterfaces
Represents an HTTP status.

I

idempotent() - Method in interface org.dmfs.httpclientinterfaces.HttpMethod
Indicates that a request method is idempotent, which means that sending multiple identical requests with that method has the same effect as sending one single request to the server.
idempotent() - Method in class org.dmfs.httpclientinterfaces.methods.AbstractMethod
 
idempotent() - Method in class org.dmfs.httpclientinterfaces.methods.IdempotentMethod
 
idempotent() - Method in class org.dmfs.httpclientinterfaces.methods.SafeMethod
 
IdempotentMethod - Class in org.dmfs.httpclientinterfaces.methods
An idempotent HttpMethod that's not safe.
IdempotentMethod(String) - Constructor for class org.dmfs.httpclientinterfaces.methods.IdempotentMethod
 
INSTANCE - Static variable in class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
An instance of an EmptyHeaderList.
INSTANCE - Static variable in class org.dmfs.httpclientinterfaces.requestutils.EmptyHttpRequestEntity
 
INSUFFICIENT_STORAGE - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 507 Insufficient Storage (WebDAV)
INTERNAL_SERVER_ERROR - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
isAnySubType() - Method in class org.dmfs.httpclientinterfaces.ContentType
 
isAnyType() - Method in class org.dmfs.httpclientinterfaces.ContentType
 
isClientError() - Method in class org.dmfs.httpclientinterfaces.HttpStatus
Returns whether this status represents a client error status code.
isInformational() - Method in class org.dmfs.httpclientinterfaces.HttpStatus
Returns whether this represents an informational status code.
isRedirect() - Method in class org.dmfs.httpclientinterfaces.HttpStatus
Returns whether this status represents a redirection status code.
isServerError() - Method in class org.dmfs.httpclientinterfaces.HttpStatus
Returns whether this status represents a server error status code.
isSuccess() - Method in class org.dmfs.httpclientinterfaces.HttpStatus
Returns whether this status represents a success status code.
iterate(E) - Method in interface org.dmfs.httpclientinterfaces.utils.FilteringIterator.IteratorFilter
 
iterator() - Method in class org.dmfs.httpclientinterfaces.headers.impl.ArrayHeaderList
 
iterator() - Method in class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
 
iterator() - Method in class org.dmfs.httpclientinterfaces.headers.impl.JoinedHeaderList
 
iterator() - Method in class org.dmfs.httpclientinterfaces.headers.impl.RemoveHeaderList
 
iterator() - Method in class org.dmfs.httpclientinterfaces.headers.impl.SingleHeaderList
 

J

JoinedHeaderList - Class in org.dmfs.httpclientinterfaces.headers.impl
A HeaderList that concatenates the Headers of two other HeaderLists.
JoinedHeaderList(HeaderList, HeaderList) - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.JoinedHeaderList
Create a HeaderList that contains the Headers of the two given HeaderLists.

L

length() - Method in class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
Get the overall length of the written content.
LENGTH_REQUIRED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 411 Length Required
Link - Interface in org.dmfs.httpclientinterfaces.headers.values
Interface of a link value as specified in RFC 5988
link() - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
Returns the actual link of this Link object.
LinkHeaderValueConverter - Class in org.dmfs.httpclientinterfaces.headers.impl
Converts between String and Link values.
LinkHeaderValueConverter() - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.LinkHeaderValueConverter
 
LOCKED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 423 Locked (WebDAV)

M

mainType - Variable in class org.dmfs.httpclientinterfaces.ContentType
The main type of the content type.
matches(ContentType) - Method in class org.dmfs.httpclientinterfaces.ContentType
Checks if another content type matches this content type.
mediaType() - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
Returns the media-type of the link target.
method() - Method in interface org.dmfs.httpclientinterfaces.HttpRequest
Returns the HTTP method of this request.
Method - Class in org.dmfs.httpclientinterfaces.methods
A HttpMethod that's neither safe nor idempotent.
Method(String) - Constructor for class org.dmfs.httpclientinterfaces.methods.Method
 
method() - Method in class org.dmfs.httpclientinterfaces.requestutils.BufferedRequest
 
METHOD_NOT_ALLOWED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
MIN_CHUNK_SIZE - Static variable in class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
The default minimum chunk size.
MOVED_PERMANENTLY - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
MULTIPLE_CHOICES - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
MULTISTATUS - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 207 Multistatus (WebDAV)

N

NeverFollowRedirectCallback - Class in org.dmfs.httpclientinterfaces.requestutils
A simple OnRedirectCallback implementation that doesn't follow any redirects.
newLocation() - Method in exception org.dmfs.httpclientinterfaces.exceptions.RedirectionException
Returns the new URI as returned by the server, may be null for some status codes.
next() - Method in class org.dmfs.httpclientinterfaces.utils.FilteringIterator
 
next() - Method in class org.dmfs.httpclientinterfaces.utils.SerialIterator
 
NO_CONTENT - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 204 No Content
NON_AUTHORITATIVE_INFORMATION - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
NOT_ACCEPTABLE - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 406 Not Acceptable
NOT_FOUND - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 404 Not Found
NOT_IMPLEMENTED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 501 Not Implemented
NOT_MODIFIED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 304 Not Modified
NotFoundException - Exception in org.dmfs.httpclientinterfaces.exceptions
This Exception is thrown when an unhandled HttpStatus.NOT_FOUND status code occurs.
NotFoundException(URI) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.NotFoundException
Create a new NotFoundException.
NotFoundException(URI, String) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.NotFoundException
Create a new NotFoundException with a message.

O

OK - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 200 OK
onError(URI, Exception) - Method in interface org.dmfs.httpclientinterfaces.OnResponseCallback
Called if any error occurred during the execution of the request.
OnRedirectCallback - Interface in org.dmfs.httpclientinterfaces
The interface of a redirection handler that knows how to handle a redirection response.
onResponse(URI, URI, T) - Method in interface org.dmfs.httpclientinterfaces.OnResponseCallback
Called when the response object has been parsed and handled successfully.
OnResponseCallback<T> - Interface in org.dmfs.httpclientinterfaces
Callback for asynchronous response handling.
OPTIONS - Static variable in interface org.dmfs.httpclientinterfaces.HttpMethod
HTTP Method OPTIONS
org.dmfs.httpclientinterfaces - package org.dmfs.httpclientinterfaces
 
org.dmfs.httpclientinterfaces.exceptions - package org.dmfs.httpclientinterfaces.exceptions
 
org.dmfs.httpclientinterfaces.headers - package org.dmfs.httpclientinterfaces.headers
 
org.dmfs.httpclientinterfaces.headers.impl - package org.dmfs.httpclientinterfaces.headers.impl
 
org.dmfs.httpclientinterfaces.headers.values - package org.dmfs.httpclientinterfaces.headers.values
 
org.dmfs.httpclientinterfaces.methods - package org.dmfs.httpclientinterfaces.methods
 
org.dmfs.httpclientinterfaces.requestutils - package org.dmfs.httpclientinterfaces.requestutils
 
org.dmfs.httpclientinterfaces.utils - package org.dmfs.httpclientinterfaces.utils
 

P

param(String) - Method in class org.dmfs.httpclientinterfaces.ContentType
Return the parameter value for a specific key.
Parameter(String) - Constructor for class org.dmfs.httpclientinterfaces.ContentType.Parameter
Create a new parameter from parsing a parameter string that looks like.
Parameter(String, String) - Constructor for class org.dmfs.httpclientinterfaces.ContentType.Parameter
Create a new parameter from a key value pair.
parseValue(String) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderValueConverter
Parses the given string representation of a header value into an Object of type ValueType.
parseValue(String) - Method in class org.dmfs.httpclientinterfaces.headers.impl.ContentTypeListHeaderValueConverter
 
parseValue(String) - Method in class org.dmfs.httpclientinterfaces.headers.impl.LinkHeaderValueConverter
 
parseValue(String) - Method in class org.dmfs.httpclientinterfaces.headers.impl.StringHeaderValueConverter
 
PARTIAL_CONTENT - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 206 Partial Content
PATCH - Static variable in interface org.dmfs.httpclientinterfaces.HttpMethod
HTTP Method PATCH
PAYLOAD_TOO_LARGE - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
PAYMENT_REQUIRED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
PERMANENT_REDIRECT - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
POST - Static variable in interface org.dmfs.httpclientinterfaces.HttpMethod
HTTP Method POST
PRECONDITION_FAILED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
PROCESSING - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 102 Processing (WebDAV) Note that this has been removed from the WebDAV specification in RFC 4918, see RFC 4918, section 21.4
ProtocolError - Exception in org.dmfs.httpclientinterfaces.exceptions
An Exception that's thrown when an error at application level occurred while handling a response.
ProtocolError(String) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.ProtocolError
Create a new ProtocolError with a message.
ProtocolError(String, Throwable) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.ProtocolError
Create a new ProtocolError with a message and a cause.
ProtocolException - Exception in org.dmfs.httpclientinterfaces.exceptions
An Exception that's thrown when an unrecoverable protocol error at application level occurred while handling a response.
ProtocolException(String) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.ProtocolException
Create a new ProtocolException with a message.
ProtocolException(String, Throwable) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.ProtocolException
Create a new ProtocolException with a message and a cause.
PROXY_AUTHENTICATION_REQUIRED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
PUT - Static variable in interface org.dmfs.httpclientinterfaces.HttpMethod
HTTP Method PUT

R

rawParameter(String) - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
Returns the String representations of all occurrence of the given parameter.
reason() - Method in class org.dmfs.httpclientinterfaces.HttpStatus
Returns the reason phrase of this status code.
redirectingLocation() - Method in exception org.dmfs.httpclientinterfaces.exceptions.RedirectionException
Returns the URI of the location that returned the redirect.
RedirectionException - Exception in org.dmfs.httpclientinterfaces.exceptions
An Exception that's thrown when the server returns a redirect and the OnRedirectCallback returned false for this redirect.
RedirectionException(HttpStatus, URI, URI) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.RedirectionException
 
RedirectionException(HttpStatus, String, URI, URI) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.RedirectionException
 
RedirectionLoopException - Exception in org.dmfs.httpclientinterfaces.exceptions
An Exception that's thrown when a redirection loop has been detected.
RedirectionLoopException(HttpStatus, URI, URI) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.RedirectionLoopException
Create a new redirection loop exception for the given status, source and destination.
relationTypes() - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
Returns the set of relation types of this link.
remove(HeaderType<?>...) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderList
Returns a new HeaderList that doesn't contain any headers of the given types.
remove(HeaderType<?>...) - Method in class org.dmfs.httpclientinterfaces.headers.impl.AbstractComplexHeaderList
 
remove(HeaderType<?>...) - Method in class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
 
remove(HeaderType<?>...) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SingleHeaderList
 
remove() - Method in class org.dmfs.httpclientinterfaces.utils.FilteringIterator
 
remove() - Method in class org.dmfs.httpclientinterfaces.utils.SerialIterator
 
RemoveHeaderList - Class in org.dmfs.httpclientinterfaces.headers.impl
A HeaderList that contains all Headers of another HeaderList except for those of specific HeaderTypes.
RemoveHeaderList(HeaderList, HeaderType<?>...) - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.RemoveHeaderList
Creates a HeaderList from another HeaderList but doesn't contain Headers of the given HeaderTypes
REQUEST_ENTITY_TOO_LARGE - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
Deprecated.
REQUEST_TIMEOUT - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 408 Request Timeout
REQUEST_URI_TOO_LONG - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
Deprecated.
requestEntity() - Method in interface org.dmfs.httpclientinterfaces.HttpRequest
Returns an HttpRequestEntity that contains the body of this request.
requestEntity() - Method in class org.dmfs.httpclientinterfaces.requestutils.BufferedRequest
 
requestUri() - Method in interface org.dmfs.httpclientinterfaces.HttpResponse
Returns the URI the request was originally sent to.
reset() - Method in class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
Clear all buffers.
RESET_CONTENT - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 205 Reset Content
responseEntity() - Method in interface org.dmfs.httpclientinterfaces.HttpResponse
Returns an HttpResponseEntity representing the data in the response.
responseHandler(HttpResponse) - Method in interface org.dmfs.httpclientinterfaces.HttpRequest
Returns a handler for the response.
responseHandler(HttpResponse) - Method in class org.dmfs.httpclientinterfaces.requestutils.BufferedRequest
 
responseUri() - Method in interface org.dmfs.httpclientinterfaces.HttpResponse
Returns the URI of the server that handled the instance.
reverseRelationTypes() - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
 

S

safe() - Method in interface org.dmfs.httpclientinterfaces.HttpMethod
Indicates that a request method is safe, which means that the request is not intended and not expected to change any state on the server.
safe() - Method in class org.dmfs.httpclientinterfaces.methods.AbstractMethod
 
safe() - Method in class org.dmfs.httpclientinterfaces.methods.SafeMethod
 
SafeMethod - Class in org.dmfs.httpclientinterfaces.methods
A safe HttpMethod.
SafeMethod(String) - Constructor for class org.dmfs.httpclientinterfaces.methods.SafeMethod
 
same(ContentType) - Method in class org.dmfs.httpclientinterfaces.ContentType
Indicates whether another ContentType is the same as this one.
SEE_OTHER - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 303 See Other
SerialIterator<T> - Class in org.dmfs.httpclientinterfaces.utils
An Iterator that serializes the results of other iterators.
SerialIterator(Iterator<T>...) - Constructor for class org.dmfs.httpclientinterfaces.utils.SerialIterator
 
ServerErrorException - Exception in org.dmfs.httpclientinterfaces.exceptions
This is a special UnexpectedResponseException for 5xx status codes (i.e. server errors).
ServerErrorException(HttpStatus) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.ServerErrorException
Create a new ServerErrorException.
ServerErrorException(HttpStatus, String) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.ServerErrorException
Create a new ServerErrorException with a message.
SERVICE_UNAVAILABLE - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
SimpleHeaderType<ValueType> - Class in org.dmfs.httpclientinterfaces.headers.impl
Simple header type class.
SimpleHeaderType(String, HeaderValueConverter<ValueType>) - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.SimpleHeaderType
Creates a HeaderType for the given header name.
SingleHeaderList - Class in org.dmfs.httpclientinterfaces.headers.impl
A trivial HeaderList that contains a single Header only.
SingleHeaderList(Header<?>) - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.SingleHeaderList
Creates a HeaderList containing a single Header only.
size() - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderList
Returns the number of Headers in this HeaderList.
size() - Method in class org.dmfs.httpclientinterfaces.headers.impl.ArrayHeaderList
 
size() - Method in class org.dmfs.httpclientinterfaces.headers.impl.EmptyHeaderList
 
size() - Method in class org.dmfs.httpclientinterfaces.headers.impl.JoinedHeaderList
 
size() - Method in class org.dmfs.httpclientinterfaces.headers.impl.RemoveHeaderList
 
size() - Method in class org.dmfs.httpclientinterfaces.headers.impl.SingleHeaderList
 
status() - Method in exception org.dmfs.httpclientinterfaces.exceptions.UnexpectedResponseException
Returns the status code as returned by the server.
status() - Method in interface org.dmfs.httpclientinterfaces.HttpResponse
Returns the status of the response.
statusCode() - Method in class org.dmfs.httpclientinterfaces.HttpStatus
Returns the status code.
statusLine(int, int) - Method in class org.dmfs.httpclientinterfaces.HttpStatus
Returns a status line in the form: HTTP/VersionMajor.VersionMinor SP Status-Code SP Reason-Phrase
StringHeaderValueConverter - Class in org.dmfs.httpclientinterfaces.headers.impl
A HeaderValueConverter for string values.
StringHeaderValueConverter() - Constructor for class org.dmfs.httpclientinterfaces.headers.impl.StringHeaderValueConverter
 
subType - Variable in class org.dmfs.httpclientinterfaces.ContentType
The sub-type of the content type.
SWITCHING_PROTOCOLS - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus

T

TEMPORARY_REDIRECT - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
title() - Method in interface org.dmfs.httpclientinterfaces.headers.values.Link
Returns the value of the title parameter, if there is any or null if there is none.
TooManyRedirectsException - Exception in org.dmfs.httpclientinterfaces.exceptions
An Exception that's thrown when the client has been redirected too often.
TooManyRedirectsException(HttpStatus, int, URI, URI) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.TooManyRedirectsException
Create a new TooManyRedirectsException for the given status, source and destination.
toString() - Method in class org.dmfs.httpclientinterfaces.ContentType.Parameter
 
toString() - Method in class org.dmfs.httpclientinterfaces.ContentType
 
TRACE - Static variable in interface org.dmfs.httpclientinterfaces.HttpMethod
HTTP Method TRACE
trim() - Method in class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
Reduce the memory allocated by this object by freeing all unused chunks.
type - Variable in class org.dmfs.httpclientinterfaces.ContentType
The content type as maintype/subtype.

U

UNAUTHORIZED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 401 Unauthorized
UnauthorizedException - Exception in org.dmfs.httpclientinterfaces.exceptions
This Exception is thrown when an unhandled HttpStatus.UNAUTHORIZED status code occurs.
UnauthorizedException() - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.UnauthorizedException
Create a new UnauthorizedException.
UnauthorizedException(String) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.UnauthorizedException
Create a new UnauthorizedException with a message.
UnexpectedResponseException - Exception in org.dmfs.httpclientinterfaces.exceptions
An exception that's thrown when a response was unexpected HttpResponseHandler.
UnexpectedResponseException(HttpStatus) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.UnexpectedResponseException
UnexpectedResponseException(HttpStatus, String) - Constructor for exception org.dmfs.httpclientinterfaces.exceptions.UnexpectedResponseException
Create a new UnexpectedResponseException with a message.
UNPROCESSABLE_ENTITY - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 422 Unprocessable Entity (WebDAV)
UNSUPPORTED_MEDIA_TYPE - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
UPGRADE_REQUIRED - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
uri() - Method in exception org.dmfs.httpclientinterfaces.exceptions.NotFoundException
Returns the URI that was not found.
URI_TOO_LONG - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 414 URI Too Long
USE_PROXY - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 305 Use Proxy

V

value - Variable in class org.dmfs.httpclientinterfaces.ContentType.Parameter
 
value() - Method in interface org.dmfs.httpclientinterfaces.headers.Header
Returns the value of the header.
valueString() - Method in interface org.dmfs.httpclientinterfaces.headers.Header
Returns the String representation of the header value.
valueString(ValueType) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderValueConverter
Renders the given header value into its string reperesentation.
valueString(List<ContentType>) - Method in class org.dmfs.httpclientinterfaces.headers.impl.ContentTypeListHeaderValueConverter
 
valueString(Link) - Method in class org.dmfs.httpclientinterfaces.headers.impl.LinkHeaderValueConverter
 
valueString(String) - Method in class org.dmfs.httpclientinterfaces.headers.impl.StringHeaderValueConverter
Renders the given header value into its string reperesentation.
valueToString(ValueType) - Method in interface org.dmfs.httpclientinterfaces.headers.HeaderType
Returns the string representation of the given value as defined for this HeaderType.
valueToString(ValueType) - Method in class org.dmfs.httpclientinterfaces.headers.impl.SimpleHeaderType
 
VARIANT_ALSO_NEGOTIATES - Static variable in class org.dmfs.httpclientinterfaces.HttpStatus
HTTP status: 506 Variant Also Negotiates (experimental)
verb() - Method in interface org.dmfs.httpclientinterfaces.HttpMethod
Returns the HTTP verb of this method.
verb() - Method in class org.dmfs.httpclientinterfaces.methods.AbstractMethod
 

W

write(byte[], int, int) - Method in class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
 
write(int) - Method in class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
 
writeContent(OutputStream) - Method in interface org.dmfs.httpclientinterfaces.HttpRequestEntity
Writes the content to the given OutputStream.
writeContent(OutputStream) - Method in class org.dmfs.httpclientinterfaces.requestutils.BufferedRequestEntity
 
writeContent(OutputStream) - Method in class org.dmfs.httpclientinterfaces.requestutils.EmptyHttpRequestEntity
 
writeTo(OutputStream) - Method in class org.dmfs.httpclientinterfaces.requestutils.ByteArrayOutputStream
Write the buffered content to the given OutputStream.
A B C D E F G H I J L M N O P R S T U V W 
Skip navigation links