Class Http.Headers
java.lang.Object
io.minio.Http.Headers
- Enclosing class:
Http
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionHeaders()Creates empty headers.Creates headers as copy of the specified source.Headers(Http.Headers source) Creates headers as copy of the specified source.Creates headers by alternating names and values.Creates headers as copy of the specified source. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified value to the name in this headers.voidclear()Clears all names and values in this headers.booleanChecks whether the specified name exists in this headers.booleancontainsKey(String name) Checks whether the specified name exists in this headers.entries()Gets Set of Map.Entry of this headers.entrySet()Gets Set of Map.Entry of this headers.booleanGets set of values of the specified name in this headers.Gets the first value of the specified name in this headers.inthashCode()iterator()Gets iterator of this headers.keySet()Gets set of values of the specified name in this headers.static Http.Headersmerge(Http.Headers... headersList) Creates new headers by merging names and values from the specified headers list.booleannamePrefixAny(String prefix) Checks whether any name in this headers starts with the specified prefix or not.names()Gets all names in this headers.booleanAdds the specified value to the name in this headers.booleanAdds list of values for the specified name to this headers.booleanAdds set of values for the specified name to this headers.Adds all names and values from the specified source to this headers.putAll(Http.Headers source) Adds all names and values from the specified source to this headers.Adds all names and values from the specified source to this headers.Removes the specified name from this headers.booleanRemoves the specified value of the specified name from this headers.booleanRemoves the specified name from this headers.voidSets the specified name and value in this headers.intsize()Gets size of this headers.okhttp3.HeadersGets new okhttp3.Headers by populating this headers.toString()Methods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
ACCEPT_ENCODING
- See Also:
-
AUTHORIZATION
- See Also:
-
CONTENT_ENCODING
- See Also:
-
CONTENT_LENGTH
- See Also:
-
CONTENT_MD5
- See Also:
-
CONTENT_TYPE
- See Also:
-
HOST
- See Also:
-
USER_AGENT
- See Also:
-
X_AMZ_CHECKSUM_SHA256
- See Also:
-
X_AMZ_CONTENT_SHA256
- See Also:
-
X_AMZ_COPY_SOURCE_RANGE
- See Also:
-
X_AMZ_DATE
- See Also:
-
X_AMZ_SDK_CHECKSUM_ALGORITHM
- See Also:
-
X_AMZ_SECURITY_TOKEN
- See Also:
-
-
Constructor Details
-
Headers
public Headers()Creates empty headers. -
Headers
Creates headers as copy of the specified source. -
Headers
-
Headers
-
Headers
Creates headers by alternating names and values.
-
-
Method Details
-
merge
Creates new headers by merging names and values from the specified headers list. -
add
-
set
-
getFirst
-
contains
Checks whether the specified name exists in this headers. -
namePrefixAny
Checks whether any name in this headers starts with the specified prefix or not. -
names
-
iterator
-
toString
-
equals
-
hashCode
-
toHttpHeaders
public okhttp3.Headers toHttpHeaders()Gets new okhttp3.Headers by populating this headers. -
clear
public void clear()Clears all names and values in this headers. -
containsKey
Checks whether the specified name exists in this headers. -
entrySet
-
entries
-
get
-
keySet
-
put
-
put
-
put
-
putAll
Adds all names and values from the specified source to this headers. -
putAll
Adds all names and values from the specified source to this headers. -
putAll
Adds all names and values from the specified source to this headers. -
remove
-
remove
-
removeAll
Removes the specified name from this headers. -
size
public int size()Gets size of this headers.
-