[−]Struct jni_android_sys::java::net::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]
__jni_env: &'env Env
) -> Result<Option<Local<'env, FileNameMap>>>
Required features: "java-net-FileNameMap"
pub fn set_file_name_map<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FileNameMap>>
) -> Result<()>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FileNameMap>>
) -> Result<()>
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]
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]
Required features: "java-lang-String"
pub fn get_content_encoding<'env>(
&'env self
) -> Result<Option<Local<'env, String>>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn get_header_fields<'env>(&'env self) -> Result<Option<Local<'env, Map>>>
[src]
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<i32>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<i64>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<i64>
Required features: "java-lang-String"
pub fn get_header_field_key<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn get_header_field_by_index<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn get_content<'env>(&'env self) -> Result<Option<Local<'env, Object>>>
[src]
Required features: "java-lang-Object"
pub fn get_permission<'env>(
&'env self
) -> Result<Option<Local<'env, Permission>>>
[src]
&'env self
) -> Result<Option<Local<'env, Permission>>>
Required features: "java-security-Permission"
pub fn get_input_stream<'env>(
&'env self
) -> Result<Option<Local<'env, InputStream>>>
[src]
&'env self
) -> Result<Option<Local<'env, InputStream>>>
Required features: "java-io-InputStream"
pub fn get_output_stream<'env>(
&'env self
) -> Result<Option<Local<'env, OutputStream>>>
[src]
&'env self
) -> Result<Option<Local<'env, OutputStream>>>
Required features: "java-io-OutputStream"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
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]
__jni_env: &'env Env,
arg0: bool
) -> Result<()>
pub fn get_default_allow_user_interaction<'env>(
__jni_env: &'env Env
) -> Result<bool>
[src]
__jni_env: &'env Env
) -> Result<bool>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<()>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<()>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn get_request_properties<'env>(
&'env self
) -> Result<Option<Local<'env, Map>>>
[src]
&'env self
) -> Result<Option<Local<'env, Map>>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<()>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn set_content_handler_factory<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ContentHandlerFactory>>
) -> Result<()>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ContentHandlerFactory>>
) -> Result<()>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env InputStream>>
) -> Result<Option<Local<'env, String>>>
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]
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
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
impl AsValidJObjectAndEnv for URLConnection
impl AsJValue for URLConnection
Auto Trait Implementations
impl !Sync for URLConnection
impl !Send for URLConnection
impl Unpin for URLConnection
impl RefUnwindSafe for URLConnection
impl UnwindSafe for URLConnection
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,