如何解决如何在jerseyJAVA中制作REST HTTPS客户端
我有一个用jersey 1.19制造的REST客户端,该客户端发出HTTP请求并可以正常工作到现在,但是服务器从HTTP移到HTTPS。如何更改我的方法以发出HTTPS请求?
这是我要更改正文的http客户端:
<layout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="viewmodel"
type="com.example.android.databinding.basicsample.data.SimpleViewModelSolution"/>
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@{viewmodel.name}"
..."/>
<Button
android:id="@+id/like_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:onClick="@{() -> viewmodel.onLike()}"
android:text="@string/like"
.../>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。