public class Html
extends java.lang.Object
Parser and Encoder methods for handling HTML content using the JSoup HTML library.
Modifier and Type | Field and Description |
---|---|
static java.util.function.Supplier<java.util.function.BiConsumer<ChainedHttpConfig,ToServer>> |
jsoupEncoderSupplier |
static java.util.function.Supplier<java.util.function.BiFunction<ChainedHttpConfig,FromServer,java.lang.Object>> |
jsoupParserSupplier |
static java.util.function.Supplier<java.util.function.BiFunction<ChainedHttpConfig,FromServer,java.lang.Object>> |
neckoParserSupplier |
Constructor and Description |
---|
Html() |
Modifier and Type | Method and Description |
---|---|
static void |
jsoupEncode(ChainedHttpConfig config,
ToServer ts) |
static java.lang.Object |
jsoupParse(ChainedHttpConfig config,
FromServer fromServer)
Method that provides an HTML parser for response configuration (uses JSoup).
|
static java.lang.Object |
neckoParse(ChainedHttpConfig config,
FromServer fromServer)
Method that provides an HTML parser for response configuration (uses necko parser).
|
public static final java.util.function.Supplier<java.util.function.BiFunction<ChainedHttpConfig,FromServer,java.lang.Object>> neckoParserSupplier
public static final java.util.function.Supplier<java.util.function.BiConsumer<ChainedHttpConfig,ToServer>> jsoupEncoderSupplier
public static final java.util.function.Supplier<java.util.function.BiFunction<ChainedHttpConfig,FromServer,java.lang.Object>> jsoupParserSupplier
public static java.lang.Object neckoParse(ChainedHttpConfig config, FromServer fromServer)
Method that provides an HTML parser for response configuration (uses necko parser).
config
- the chained configurationfromServer
- the server response adapterGPathResult
object)public static java.lang.Object jsoupParse(ChainedHttpConfig config, FromServer fromServer)
Method that provides an HTML parser for response configuration (uses JSoup).
config
- the chained configurationfromServer
- the server response adapterDocument
object)public static void jsoupEncode(ChainedHttpConfig config, ToServer ts)