
org.dmfs.httpclient.responsehandlers.FailResponseHandler.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-client-basics Show documentation
Show all versions of http-client-basics Show documentation
Basic implementations of http-client-essentials that are frequently used.
???? 3 ?
= " > ? @ A B A C A D E ? F G H
I J
K L
M A N O P
Q R S A T
U V A W
X A Y Z [
X \ ]
X ? ^ _ `
a b c
" = d INSTANCE )Lorg/dmfs/httpclient/HttpResponseHandler; Signature ,Lorg/dmfs/httpclient/HttpResponseHandler<*>; ()V Code getInstance +()Lorg/dmfs/httpclient/HttpResponseHandler; F()Lorg/dmfs/httpclient/HttpResponseHandler; handleResponse 6(Lorg/dmfs/httpclient/HttpResponse;)Ljava/lang/Object;
StackMapTable e c f g
Exceptions h i j '(Lorg/dmfs/httpclient/HttpResponse;)TT; VLjava/lang/Object;Lorg/dmfs/httpclient/HttpResponseHandler; ) * % & f k l e m n o p q r 0org/dmfs/httpclient/exceptions/NotFoundException s t Resource at '%s' not found. java/lang/Object u v w x y z ) { | p 4org/dmfs/httpclient/exceptions/UnauthorizedException Authentication at '%s' failed. ) } 3org/dmfs/httpclient/exceptions/ClientErrorException %'%s' returned a client error: '%d %s' ~ ? ? ? ? w ) ? ? n 3org/dmfs/httpclient/exceptions/ServerErrorException %'%s' returned a server error: '%d %s' 8org/dmfs/httpclient/exceptions/UnexpectedStatusException 1Unexpected status code '%d %s' returned from '%s' ? ? ? ? ? ? ? * 8org/dmfs/httpclient/responsehandlers/FailResponseHandler 'org/dmfs/httpclient/HttpResponseHandler org/dmfs/httpclient/HttpStatus org/dmfs/httpclient/HttpResponse java/lang/Throwable java/io/IOException ,org/dmfs/httpclient/exceptions/ProtocolError 0org/dmfs/httpclient/exceptions/ProtocolException status "()Lorg/dmfs/httpclient/HttpStatus;
isClientError ()Z NOT_FOUND Lorg/dmfs/httpclient/HttpStatus; equals (Ljava/lang/Object;)Z responseUri ()Ljava/net/URI; java/net/URI
toASCIIString ()Ljava/lang/String; java/lang/String format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; #(Ljava/net/URI;Ljava/lang/String;)V UNAUTHORIZED (Ljava/lang/String;)V
statusCode ()I java/lang/Integer valueOf (I)Ljava/lang/Integer; reason 5(Lorg/dmfs/httpclient/HttpStatus;Ljava/lang/String;)V
isServerError responseEntity *()Lorg/dmfs/httpclient/HttpResponseEntity; &org/dmfs/httpclient/HttpResponseEntity
contentStream ()Ljava/io/InputStream; java/io/InputStream close 1 "
$ % &