public class HttpValueFunctions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <A,B,C,D,E> |
chain(com.google.common.base.Function<A,? extends B> f1,
com.google.common.base.Function<B,? extends C> f2,
com.google.common.base.Function<C,? extends D> f3,
com.google.common.base.Function<D,E> f4)
Deprecated.
since 0.7.0 use
Functionals.chain(Function, Function, Function, Function) |
static <A,B,C,D> com.google.common.base.Function<A,D> |
chain(com.google.common.base.Function<A,? extends B> f1,
com.google.common.base.Function<B,? extends C> f2,
com.google.common.base.Function<C,D> f3)
Deprecated.
since 0.7.0 use
Functionals.chain(Function, Function, Function) |
static <A,B,C> com.google.common.base.Function<A,C> |
chain(com.google.common.base.Function<A,? extends B> f1,
com.google.common.base.Function<B,C> f2)
Deprecated.
since 0.7.0 use
Functionals.chain(Function, Function) |
static com.google.common.base.Function<HttpToolResponse,com.google.gson.JsonElement> |
jsonContents() |
static <T> com.google.common.base.Function<HttpToolResponse,T> |
jsonContents(java.lang.String[] elements,
java.lang.Class<T> expected) |
static <T> com.google.common.base.Function<HttpToolResponse,T> |
jsonContents(java.lang.String element,
java.lang.Class<T> expected) |
static <T> com.google.common.base.Function<HttpToolResponse,T> |
jsonContentsFromPath(java.lang.String path) |
static com.google.common.base.Function<HttpToolResponse,java.lang.Long> |
latency() |
static com.google.common.base.Function<HttpToolResponse,java.lang.Integer> |
responseCode() |
static com.google.common.base.Function<HttpToolResponse,java.lang.Boolean> |
responseCodeEquals(int... expected) |
static com.google.common.base.Function<HttpToolResponse,java.lang.Boolean> |
responseCodeEquals(int expected) |
static com.google.common.base.Function<HttpToolResponse,java.lang.String> |
stringContentsFunction() |
public static com.google.common.base.Function<HttpToolResponse,java.lang.Integer> responseCode()
public static com.google.common.base.Function<HttpToolResponse,java.lang.Boolean> responseCodeEquals(int expected)
public static com.google.common.base.Function<HttpToolResponse,java.lang.Boolean> responseCodeEquals(int... expected)
public static com.google.common.base.Function<HttpToolResponse,java.lang.String> stringContentsFunction()
public static com.google.common.base.Function<HttpToolResponse,com.google.gson.JsonElement> jsonContents()
public static <T> com.google.common.base.Function<HttpToolResponse,T> jsonContents(java.lang.String element, java.lang.Class<T> expected)
public static <T> com.google.common.base.Function<HttpToolResponse,T> jsonContents(java.lang.String[] elements, java.lang.Class<T> expected)
public static <T> com.google.common.base.Function<HttpToolResponse,T> jsonContentsFromPath(java.lang.String path)
public static com.google.common.base.Function<HttpToolResponse,java.lang.Long> latency()
@Deprecated public static <A,B,C> com.google.common.base.Function<A,C> chain(com.google.common.base.Function<A,? extends B> f1, com.google.common.base.Function<B,C> f2)
Functionals.chain(Function, Function)
@Deprecated public static <A,B,C,D> com.google.common.base.Function<A,D> chain(com.google.common.base.Function<A,? extends B> f1, com.google.common.base.Function<B,? extends C> f2, com.google.common.base.Function<C,D> f3)
Functionals.chain(Function, Function, Function)
@Deprecated public static <A,B,C,D,E> com.google.common.base.Function<A,E> chain(com.google.common.base.Function<A,? extends B> f1, com.google.common.base.Function<B,? extends C> f2, com.google.common.base.Function<C,? extends D> f3, com.google.common.base.Function<D,E> f4)
Functionals.chain(Function, Function, Function, Function)