com.philips.lighting.hue.sdk.connection.impl.PHHueHttpConnection.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hue-local Show documentation
Show all versions of hue-local Show documentation
The Philips hue local SDK released via Syncleus for maven.
???? 2 ?
C ? B ? ? ?
? ?
?
?
? ? ?
?
? ? B ?
?
?
? G
B ?
?
? ?
? ? ?
?
? ?
?
?
? ? ? ? ?
?
? ? ?
$ ? ?
? ?
?
$ ?
?
$ ? ? ? ? J ? ?
?
? ? ?
5 ?
5 ?
5 ?
5 ? ? H ? ? I ? ? ? ? TAG Ljava/lang/String;
ConstantValue GET DELETE PUT POST timeoutConnection I
connection Ljava/net/HttpURLConnection; ()V Code LineNumberTable LocalVariableTable this BLcom/philips/lighting/hue/sdk/connection/impl/PHHueHttpConnection; openConnection '(Ljava/lang/String;Ljava/lang/String;)V url method uri Ljava/net/URL;
Exceptions ? getTimeoutConnection ()I setTimeoutConnection (I)V getData &(Ljava/lang/String;)Ljava/lang/String; e Ljava/io/IOException; content Ljava/lang/Object; sb Ljava/lang/StringBuffer; line newLine Ljava/lang/Exception; in Ljava/io/BufferedReader; returnString
StackMapTable ? ? ? ? ? ? ? ? postData 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; outputStream Ljava/io/OutputStream; out Ljava/io/OutputStreamWriter; data ? ?
deleteData str putData
SourceFile PHHueHttpConnection.java O P K L PHHueHttpConnection java/lang/StringBuilder openConnection with URL: ? ? ? ? ? ? W java/net/URL O ? V ? java/net/HttpURLConnection M N ? ? ? a ? a V W ? P ? P java/io/IOException ? ? GetData IOException: ? ? d W ? P ? _ ? ? java/io/BufferedReader java/io/InputStreamReader java/io/InputStream UTF8 O ? O ? java/lang/StringBuffer line.separator ? ? c ? ? ? ? ? ? java/lang/Exception GetData Exception: Bridge Response : PostData IOException: DATA : ? ? ? ? java/io/OutputStreamWriter UTF-8 O ? ? ? ? P PostData Exception: DeleteData IOException: DeleteData Exception: PutData Exception: DATA : @com/philips/lighting/hue/sdk/connection/impl/PHHueHttpConnection java/lang/Object java/net/MalformedURLException java/lang/String java/lang/Throwable java/io/OutputStream append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; 1com/philips/lighting/hue/sdk/utilities/impl/PHLog d (Ljava/lang/String;)V ()Ljava/net/URLConnection; setRequestMethod setConnectTimeout setReadTimeout close
disconnect
isLoggable ()Z -(Ljava/lang/Object;)Ljava/lang/StringBuilder; connect getResponseCode
getContent ()Ljava/lang/Object; *(Ljava/io/InputStream;Ljava/lang/String;)V (Ljava/io/Reader;)V java/lang/System getProperty readLine ,(Ljava/lang/String;)Ljava/lang/StringBuffer; ready setDoOutput (Z)V getOutputStream ()Ljava/io/OutputStream; +(Ljava/io/OutputStream;Ljava/lang/String;)V write flush ! B C D E F G E F H E F <