public final class Communicators
extends java.lang.Object
Constructor and Description |
---|
Communicators() |
Modifier and Type | Method and Description |
---|---|
static ContentHandler<BasicHttpResponse,java.io.Reader> |
characterDecoder() |
static <K,I,R> ContentHandler<K,R> |
compose(ContentHandler<I,R> cont1,
ContentHandler<K,I> cont2) |
static ContentHandler<BasicHttpResponse,java.lang.String> |
contentReader() |
static <K,R> Communicator<R> |
fmap(Communicator<K> comm,
ContentHandler<K,R> handler) |
static ContentHandler<org.apache.http.HttpResponse,java.lang.Integer> |
httpResponseCodeReader() |
static <K> ContentHandler<K,K> |
identityHandler() |
static ContentHandler<java.io.Reader,java.lang.String> |
readChars() |
static <K,V> SimpleCommunicator<V> |
simplify(Communicator<K> communicator,
ContentHandler<K,V> handler) |
static ContentHandler<org.apache.http.HttpResponse,BasicHttpResponse> |
transportDecoder() |
public static <K,V> SimpleCommunicator<V> simplify(Communicator<K> communicator, ContentHandler<K,V> handler)
public static <K> ContentHandler<K,K> identityHandler()
public static ContentHandler<BasicHttpResponse,java.lang.String> contentReader()
public static <K,I,R> ContentHandler<K,R> compose(ContentHandler<I,R> cont1, ContentHandler<K,I> cont2)
public static <K,R> Communicator<R> fmap(Communicator<K> comm, ContentHandler<K,R> handler)
public static ContentHandler<org.apache.http.HttpResponse,BasicHttpResponse> transportDecoder()
public static ContentHandler<BasicHttpResponse,java.io.Reader> characterDecoder()
public static ContentHandler<java.io.Reader,java.lang.String> readChars()
public static ContentHandler<org.apache.http.HttpResponse,java.lang.Integer> httpResponseCodeReader()