[]Struct jni_android_sys::java::net::URLConnection

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

public class URLConnection

Required feature: java-net-URLConnection

Methods

impl URLConnection

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

getFileNameMap

Required features: "java-net-FileNameMap"

pub fn set_file_name_map<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env FileNameMap>>
) -> Result<()>
[src]

setFileNameMap

Required features: "java-net-FileNameMap"

pub fn connect<'env>(&'env self) -> Result<()>[src]

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

pub fn get_connect_timeout<'env>(&'env self) -> Result<i32>[src]

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

pub fn get_read_timeout<'env>(&'env self) -> Result<i32>[src]

pub fn get_url<'env>(&'env self) -> Result<Option<Local<'env, URL>>>[src]

getURL

Required features: "java-net-URL"

pub fn get_content_length<'env>(&'env self) -> Result<i32>[src]

pub fn get_content_length_long<'env>(&'env self) -> Result<i64>[src]

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

getContentType

Required features: "java-lang-String"

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

getContentEncoding

Required features: "java-lang-String"

pub fn get_expiration<'env>(&'env self) -> Result<i64>[src]

pub fn get_date<'env>(&'env self) -> Result<i64>[src]

pub fn get_last_modified<'env>(&'env self) -> Result<i64>[src]

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

getHeaderField

Required features: "java-lang-String"

pub fn get_header_fields<'env>(&'env self) -> Result<Option<Local<'env, Map>>>[src]

getHeaderFields

Required features: "java-util-Map"

pub fn get_header_field_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32
) -> Result<i32>
[src]

getHeaderFieldInt

Required features: "java-lang-String"

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

getHeaderFieldLong

Required features: "java-lang-String"

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

getHeaderFieldDate

Required features: "java-lang-String"

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

getHeaderFieldKey

Required features: "java-lang-String"

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

getHeaderField

Required features: "java-lang-String"

pub fn get_content<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

getContent

Required features: "java-lang-Object"

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

getPermission

Required features: "java-security-Permission"

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

getInputStream

Required features: "java-io-InputStream"

pub fn get_output_stream<'env>(
    &'env self
) -> Result<Option<Local<'env, OutputStream>>>
[src]

getOutputStream

Required features: "java-io-OutputStream"

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

toString

Required features: "java-lang-String"

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

pub fn get_do_input<'env>(&'env self) -> Result<bool>[src]

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

pub fn get_do_output<'env>(&'env self) -> Result<bool>[src]

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

pub fn get_allow_user_interaction<'env>(&'env self) -> Result<bool>[src]

pub fn set_default_allow_user_interaction<'env>(
    __jni_env: &'env Env,
    arg0: bool
) -> Result<()>
[src]

pub fn get_default_allow_user_interaction<'env>(
    __jni_env: &'env Env
) -> Result<bool>
[src]

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

pub fn get_use_caches<'env>(&'env self) -> Result<bool>[src]

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

pub fn get_if_modified_since<'env>(&'env self) -> Result<i64>[src]

pub fn get_default_use_caches<'env>(&'env self) -> Result<bool>[src]

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

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

setRequestProperty

Required features: "java-lang-String"

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

addRequestProperty

Required features: "java-lang-String"

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

getRequestProperty

Required features: "java-lang-String"

pub fn get_request_properties<'env>(
    &'env self
) -> Result<Option<Local<'env, Map>>>
[src]

getRequestProperties

Required features: "java-util-Map"

pub fn set_default_request_property<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<()>
[src]

Deprecated

setDefaultRequestProperty

Required features: "java-lang-String"

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

Deprecated

getDefaultRequestProperty

Required features: "java-lang-String"

pub fn set_content_handler_factory<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ContentHandlerFactory>>
) -> Result<()>
[src]

setContentHandlerFactory

Required features: "java-net-ContentHandlerFactory"

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

guessContentTypeFromName

Required features: "java-lang-String"

pub fn guess_content_type_from_stream<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env InputStream>>
) -> Result<Option<Local<'env, String>>>
[src]

guessContentTypeFromStream

Required features: "java-io-InputStream", "java-lang-String"

Methods from Deref<Target = Object>

pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<()>[src]

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

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

pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]

pub fn wait<'env>(&'env self) -> Result<()>[src]

Trait Implementations

impl Deref for URLConnection

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for URLConnection

impl AsJValue for URLConnection

Auto Trait Implementations

Blanket Implementations

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.

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

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

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