[]Struct jni_android_sys::javax::net::ssl::HttpsURLConnection

#[repr(transparent)]
pub struct HttpsURLConnection(_);

public class HttpsURLConnection

Required feature: "javax-net-ssl-HttpsURLConnection"

Methods

impl HttpsURLConnection

pub fn getCipherSuite<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getCipherSuite

Required features: "java-lang-String"

pub fn getLocalCertificates<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<Certificate, Throwable>>>, Local<'env, Throwable>>
[src]

getLocalCertificates

Required features: "java-security-cert-Certificate"

pub fn getServerCertificates<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<Certificate, Throwable>>>, Local<'env, Throwable>>
[src]

getServerCertificates

Required features: "java-security-cert-Certificate"

pub fn getPeerPrincipal<'env>(
    &'env self
) -> Result<Option<Local<'env, Principal>>, Local<'env, Throwable>>
[src]

getPeerPrincipal

Required features: "java-security-Principal"

pub fn getLocalPrincipal<'env>(
    &'env self
) -> Result<Option<Local<'env, Principal>>, Local<'env, Throwable>>
[src]

getLocalPrincipal

Required features: "java-security-Principal"

pub fn setDefaultHostnameVerifier<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env HostnameVerifier>>
) -> Result<(), Local<'env, Throwable>>
[src]

setDefaultHostnameVerifier

Required features: "javax-net-ssl-HostnameVerifier"

pub fn getDefaultHostnameVerifier<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, HostnameVerifier>>, Local<'env, Throwable>>
[src]

getDefaultHostnameVerifier

Required features: "javax-net-ssl-HostnameVerifier"

pub fn setHostnameVerifier<'env>(
    &'env self,
    arg0: impl Into<Option<&'env HostnameVerifier>>
) -> Result<(), Local<'env, Throwable>>
[src]

setHostnameVerifier

Required features: "javax-net-ssl-HostnameVerifier"

pub fn getHostnameVerifier<'env>(
    &'env self
) -> Result<Option<Local<'env, HostnameVerifier>>, Local<'env, Throwable>>
[src]

getHostnameVerifier

Required features: "javax-net-ssl-HostnameVerifier"

pub fn setDefaultSSLSocketFactory<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env SSLSocketFactory>>
) -> Result<(), Local<'env, Throwable>>
[src]

setDefaultSSLSocketFactory

Required features: "javax-net-ssl-SSLSocketFactory"

pub fn getDefaultSSLSocketFactory<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, SSLSocketFactory>>, Local<'env, Throwable>>
[src]

getDefaultSSLSocketFactory

Required features: "javax-net-ssl-SSLSocketFactory"

pub fn setSSLSocketFactory<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SSLSocketFactory>>
) -> Result<(), Local<'env, Throwable>>
[src]

setSSLSocketFactory

Required features: "javax-net-ssl-SSLSocketFactory"

pub fn getSSLSocketFactory<'env>(
    &'env self
) -> Result<Option<Local<'env, SSLSocketFactory>>, Local<'env, Throwable>>
[src]

getSSLSocketFactory

Required features: "javax-net-ssl-SSLSocketFactory"

Methods from Deref<Target = HttpURLConnection>

pub fn getHeaderFieldKey<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getHeaderFieldKey

Required features: "java-lang-String"

pub fn setFixedLengthStreamingMode_int<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setFixedLengthStreamingMode_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setChunkedStreamingMode<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getHeaderField<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getHeaderField

Required features: "java-lang-String"

pub fn setInstanceFollowRedirects<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getInstanceFollowRedirects<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setRequestMethod<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

setRequestMethod

Required features: "java-lang-String"

pub fn getRequestMethod<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getRequestMethod

Required features: "java-lang-String"

pub fn getResponseCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getResponseMessage<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getResponseMessage

Required features: "java-lang-String"

pub fn getHeaderFieldDate<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i64
) -> Result<i64, Local<'env, Throwable>>
[src]

getHeaderFieldDate

Required features: "java-lang-String"

pub fn disconnect<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn usingProxy<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn getPermission<'env>(
    &'env self
) -> Result<Option<Local<'env, Permission>>, Local<'env, Throwable>>
[src]

getPermission

Required features: "java-security-Permission"

pub fn getErrorStream<'env>(
    &'env self
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
[src]

getErrorStream

Required features: "java-io-InputStream"

pub const HTTP_ACCEPTED: i32[src]

pub const HTTP_BAD_GATEWAY: i32[src]

pub const HTTP_BAD_METHOD: i32[src]

pub const HTTP_BAD_REQUEST: i32[src]

pub const HTTP_CLIENT_TIMEOUT: i32[src]

pub const HTTP_CONFLICT: i32[src]

pub const HTTP_CREATED: i32[src]

pub const HTTP_ENTITY_TOO_LARGE: i32[src]

pub const HTTP_FORBIDDEN: i32[src]

pub const HTTP_GATEWAY_TIMEOUT: i32[src]

pub const HTTP_GONE: i32[src]

pub const HTTP_INTERNAL_ERROR: i32[src]

pub const HTTP_LENGTH_REQUIRED: i32[src]

pub const HTTP_MOVED_PERM: i32[src]

pub const HTTP_MOVED_TEMP: i32[src]

pub const HTTP_MULT_CHOICE: i32[src]

pub const HTTP_NOT_ACCEPTABLE: i32[src]

pub const HTTP_NOT_AUTHORITATIVE: i32[src]

pub const HTTP_NOT_FOUND: i32[src]

pub const HTTP_NOT_IMPLEMENTED: i32[src]

pub const HTTP_NOT_MODIFIED: i32[src]

pub const HTTP_NO_CONTENT: i32[src]

pub const HTTP_OK: i32[src]

pub const HTTP_PARTIAL: i32[src]

pub const HTTP_PAYMENT_REQUIRED: i32[src]

pub const HTTP_PRECON_FAILED: i32[src]

pub const HTTP_PROXY_AUTH: i32[src]

pub const HTTP_REQ_TOO_LONG: i32[src]

pub const HTTP_RESET: i32[src]

pub const HTTP_SEE_OTHER: i32[src]

pub const HTTP_SERVER_ERROR: i32[src]

pub const HTTP_UNAUTHORIZED: i32[src]

pub const HTTP_UNAVAILABLE: i32[src]

pub const HTTP_UNSUPPORTED_TYPE: i32[src]

pub const HTTP_USE_PROXY: i32[src]

pub const HTTP_VERSION: i32[src]

Trait Implementations

impl AsJValue for HttpsURLConnection

impl AsValidJObjectAndEnv for HttpsURLConnection

impl Deref for HttpsURLConnection

type Target = HttpURLConnection

The resulting type after dereferencing.

impl JniType for HttpsURLConnection

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.