Package org.openqa.selenium.remote.http
Class Contents
java.lang.Object
org.openqa.selenium.remote.http.Contents
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA supplier that can be called multiple times, each invocation must return a new InputStream ready to read. -
Method Summary
Modifier and TypeMethodDescriptionstatic Contents.Supplierstatic Contents.Supplierbytes(byte[] bytes) static byte[]bytes(Contents.Supplier supplier) static Contents.Supplierempty()static <T> Tstatic Readerreader(Contents.Supplier supplier, Charset charset) static Readerreader(org.openqa.selenium.remote.http.HttpMessage<?> message) static Stringstatic Contents.Supplierstring(CharSequence value, Charset charset) static Stringstring(Contents.Supplier supplier, Charset charset) static Stringstring(org.openqa.selenium.remote.http.HttpMessage<?> message) static Readerutf8Reader(Contents.Supplier supplier) static Contents.Supplierutf8String(CharSequence value) static Stringutf8String(Contents.Supplier supplier)
-
Method Details
-
empty
-
utf8String
-
string
-
bytes
-
bytes
-
utf8String
-
string
-
string
-
utf8Reader
-
reader
-
reader
-
asJson
- Returns:
- an
Contents.Suppliercontaining the object converted to a UTF-8 JSON string.
-
fromJson
-
string
- Throws:
IOException
-