Class Http1Headers
java.lang.Object
cool.scx.http.x.http1.headers.Http1Headers
- All Implemented Interfaces:
cool.scx.http.headers.ScxHttpHeaders, cool.scx.http.headers.ScxHttpHeadersWritable, cool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>, cool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>, Iterable<cool.scx.http.parameters.ParameterEntry<cool.scx.http.headers.ScxHttpHeaderName, String>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear()connection(Connection connection) booleancontains(cool.scx.http.headers.ScxHttpHeaderName name) expect()<X extends Throwable>
voidforEach(cool.scx.function.Function2Void<? super cool.scx.http.headers.ScxHttpHeaderName, String, X> action) <X extends Throwable>
voidforEachParameter(cool.scx.function.Function2Void<? super cool.scx.http.headers.ScxHttpHeaderName, List<String>, X> action) get(cool.scx.http.headers.ScxHttpHeaderName name) getAll(cool.scx.http.headers.ScxHttpHeaderName name) booleanisEmpty()iterator()Set<cool.scx.http.headers.ScxHttpHeaderName> names()remove(cool.scx.http.headers.ScxHttpHeaderName name) longsize()toMap()toString()transferEncoding(ScxTransferEncoding transferEncoding) upgrade()upgrade(ScxUpgrade upgrade) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface cool.scx.http.headers.ScxHttpHeaders
accept, contains, contentDisposition, contentEncoding, contentLength, contentType, cookies, encode, get, getAll, getCookie, getSetCookie, setCookiesMethods inherited from interface cool.scx.http.headers.ScxHttpHeadersWritable
add, addCookie, addSetCookie, contentDisposition, contentEncoding, contentLength, contentType, cookies, remove, removeCookie, removeSetCookie, set, setCookies
-
Constructor Details
-
Http1Headers
public Http1Headers(cool.scx.http.headers.ScxHttpHeaders h) -
Http1Headers
public Http1Headers()
-
-
Method Details
-
set
- Specified by:
setin interfacecool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>- Specified by:
setin interfacecool.scx.http.headers.ScxHttpHeadersWritable
-
add
- Specified by:
addin interfacecool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>- Specified by:
addin interfacecool.scx.http.headers.ScxHttpHeadersWritable
-
remove
- Specified by:
removein interfacecool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>- Specified by:
removein interfacecool.scx.http.headers.ScxHttpHeadersWritable
-
clear
- Specified by:
clearin interfacecool.scx.http.parameters.ParametersWritable<cool.scx.http.headers.ScxHttpHeaderName, String>- Specified by:
clearin interfacecool.scx.http.headers.ScxHttpHeadersWritable
-
size
public long size()- Specified by:
sizein interfacecool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
-
names
-
get
-
getAll
-
contains
public boolean contains(cool.scx.http.headers.ScxHttpHeaderName name) - Specified by:
containsin interfacecool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacecool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>
-
toMultiValueMap
-
toMap
-
forEach
-
forEachParameter
public <X extends Throwable> void forEachParameter(cool.scx.function.Function2Void<? super cool.scx.http.headers.ScxHttpHeaderName, List<String>, X> action) throws X - Specified by:
forEachParameterin interfacecool.scx.http.parameters.Parameters<cool.scx.http.headers.ScxHttpHeaderName, String>- Throws:
X
-
iterator
-
toString
-
connection
-
connection
-
transferEncoding
-
transferEncoding
-
expect
-
expect
-
upgrade
-
upgrade
-