[−]Struct jni_android_sys::java::net::URLConnection
public class URLConnection
Required feature: "java-net-URLConnection"
Methods
impl URLConnection
pub fn getFileNameMap<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, FileNameMap>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, FileNameMap>>, Local<'env, Throwable>>
Required features: "java-net-FileNameMap"
pub fn setFileNameMap<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FileNameMap>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FileNameMap>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-net-FileNameMap"
pub fn connect<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn setConnectTimeout<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getConnectTimeout<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn setReadTimeout<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getReadTimeout<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getURL<'env>(
&'env self
) -> Result<Option<Local<'env, URL>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, URL>>, Local<'env, Throwable>>
Required features: "java-net-URL"
pub fn getContentLength<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getContentLengthLong<'env>(
&'env self
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i64, Local<'env, Throwable>>
pub fn getContentType<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getContentEncoding<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getExpiration<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>
[src]
pub fn getDate<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>
[src]
pub fn getLastModified<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>
[src]
pub fn getHeaderFieldByName<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getHeaderFields<'env>(
&'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
Required features: "java-util-Map"
pub fn getHeaderFieldInt<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getHeaderFieldLong<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<i64, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getHeaderFieldKey<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getHeaderFieldByIndex<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getContent<'env>(
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn getContent_Class_array<'env>(
&'env self,
arg0: impl Into<Option<&'env ObjectArray<Class, Throwable>>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<Class, Throwable>>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-Object"
pub fn getPermission<'env>(
&'env self
) -> Result<Option<Local<'env, Permission>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Permission>>, Local<'env, Throwable>>
Required features: "java-security-Permission"
pub fn getInputStream<'env>(
&'env self
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
Required features: "java-io-InputStream"
pub fn getOutputStream<'env>(
&'env self
) -> Result<Option<Local<'env, OutputStream>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, OutputStream>>, Local<'env, Throwable>>
Required features: "java-io-OutputStream"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setDoInput<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getDoInput<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn setDoOutput<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getDoOutput<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn setAllowUserInteraction<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getAllowUserInteraction<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn setDefaultAllowUserInteraction<'env>(
__jni_env: &'env Env,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getDefaultAllowUserInteraction<'env>(
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
pub fn setUseCaches<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getUseCaches<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn setIfModifiedSince<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn getIfModifiedSince<'env>(
&'env self
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i64, Local<'env, Throwable>>
pub fn getDefaultUseCaches<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn setDefaultUseCaches<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn setRequestProperty<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn addRequestProperty<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getRequestProperty<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getRequestProperties<'env>(
&'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
Required features: "java-util-Map"
pub fn setDefaultRequestProperty<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getDefaultRequestProperty<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setContentHandlerFactory<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ContentHandlerFactory>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ContentHandlerFactory>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-net-ContentHandlerFactory"
pub fn guessContentTypeFromName<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn guessContentTypeFromStream<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env InputStream>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env InputStream>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-io-InputStream", "java-lang-String"
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for URLConnection
impl AsValidJObjectAndEnv for URLConnection
impl Deref for URLConnection
impl JniType for URLConnection
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for URLConnection
impl !Send for URLConnection
impl !Sync for URLConnection
impl Unpin for URLConnection
impl UnwindSafe for URLConnection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,