[]Struct jni_android_sys::java::net::JarURLConnection

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

public class JarURLConnection

Required feature: "java-net-JarURLConnection"

Methods

impl JarURLConnection

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

getJarFileURL

Required features: "java-net-URL"

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

getEntryName

Required features: "java-lang-String"

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

getJarFile

Required features: "java-util-jar-JarFile"

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

getManifest

Required features: "java-util-jar-Manifest"

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

getJarEntry

Required features: "java-util-jar-JarEntry"

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

getAttributes

Required features: "java-util-jar-Attributes"

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

getMainAttributes

Required features: "java-util-jar-Attributes"

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

getCertificates

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

Methods from Deref<Target = URLConnection>

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

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

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

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

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]

getURL

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]

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

getContentType

Required features: "java-lang-String"

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

getContentEncoding

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]

getHeaderField

Required features: "java-lang-String"

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

getHeaderFields

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]

getHeaderFieldInt

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]

getHeaderFieldLong

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 getHeaderFieldKey<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getHeaderFieldKey

Required features: "java-lang-String"

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

getHeaderField

Required features: "java-lang-String"

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

getContent

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]

getContent

Required features: "java-lang-Class", "java-lang-Object"

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

getPermission

Required features: "java-security-Permission"

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

getInputStream

Required features: "java-io-InputStream"

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

getOutputStream

Required features: "java-io-OutputStream"

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

toString

Required features: "java-lang-String"

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

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]

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]

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

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

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]

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

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

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

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

setRequestProperty

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]

addRequestProperty

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]

getRequestProperty

Required features: "java-lang-String"

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

getRequestProperties

Required features: "java-util-Map"

Trait Implementations

impl AsJValue for JarURLConnection

impl AsValidJObjectAndEnv for JarURLConnection

impl Deref for JarURLConnection

type Target = URLConnection

The resulting type after dereferencing.

impl JniType for JarURLConnection

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.