[−]Struct jni_android_sys::java::net::HttpURLConnection
public class HttpURLConnection
Required feature: "java-net-HttpURLConnection"
Methods
impl HttpURLConnection
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 setFixedLengthStreamingMode_int<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setFixedLengthStreamingMode_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn setChunkedStreamingMode<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getHeaderField<'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 setFollowRedirects<'env>(
__jni_env: &'env Env,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getFollowRedirects<'env>(
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
pub fn setInstanceFollowRedirects<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getInstanceFollowRedirects<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn setRequestMethod<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getRequestMethod<'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 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]
&'env self
) -> Result<Option<Local<'env, String>>, 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 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]
&'env self
) -> Result<Option<Local<'env, Permission>>, Local<'env, Throwable>>
Required features: "java-security-Permission"
pub fn getErrorStream<'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 const HTTP_ACCEPTED: i32
[src]
public static final HTTP_ACCEPTED
pub const HTTP_BAD_GATEWAY: i32
[src]
public static final HTTP_BAD_GATEWAY
pub const HTTP_BAD_METHOD: i32
[src]
public static final HTTP_BAD_METHOD
pub const HTTP_BAD_REQUEST: i32
[src]
public static final HTTP_BAD_REQUEST
pub const HTTP_CLIENT_TIMEOUT: i32
[src]
public static final HTTP_CLIENT_TIMEOUT
pub const HTTP_CONFLICT: i32
[src]
public static final HTTP_CONFLICT
pub const HTTP_CREATED: i32
[src]
public static final HTTP_CREATED
pub const HTTP_ENTITY_TOO_LARGE: i32
[src]
public static final HTTP_ENTITY_TOO_LARGE
pub const HTTP_FORBIDDEN: i32
[src]
public static final HTTP_FORBIDDEN
pub const HTTP_GATEWAY_TIMEOUT: i32
[src]
public static final HTTP_GATEWAY_TIMEOUT
pub const HTTP_GONE: i32
[src]
public static final HTTP_GONE
pub const HTTP_INTERNAL_ERROR: i32
[src]
public static final HTTP_INTERNAL_ERROR
pub const HTTP_LENGTH_REQUIRED: i32
[src]
public static final HTTP_LENGTH_REQUIRED
pub const HTTP_MOVED_PERM: i32
[src]
public static final HTTP_MOVED_PERM
pub const HTTP_MOVED_TEMP: i32
[src]
public static final HTTP_MOVED_TEMP
pub const HTTP_MULT_CHOICE: i32
[src]
public static final HTTP_MULT_CHOICE
pub const HTTP_NOT_ACCEPTABLE: i32
[src]
public static final HTTP_NOT_ACCEPTABLE
pub const HTTP_NOT_AUTHORITATIVE: i32
[src]
public static final HTTP_NOT_AUTHORITATIVE
pub const HTTP_NOT_FOUND: i32
[src]
public static final HTTP_NOT_FOUND
pub const HTTP_NOT_IMPLEMENTED: i32
[src]
public static final HTTP_NOT_IMPLEMENTED
pub const HTTP_NOT_MODIFIED: i32
[src]
public static final HTTP_NOT_MODIFIED
pub const HTTP_NO_CONTENT: i32
[src]
public static final HTTP_NO_CONTENT
pub const HTTP_OK: i32
[src]
public static final HTTP_OK
pub const HTTP_PARTIAL: i32
[src]
public static final HTTP_PARTIAL
pub const HTTP_PAYMENT_REQUIRED: i32
[src]
public static final HTTP_PAYMENT_REQUIRED
pub const HTTP_PRECON_FAILED: i32
[src]
public static final HTTP_PRECON_FAILED
pub const HTTP_PROXY_AUTH: i32
[src]
public static final HTTP_PROXY_AUTH
pub const HTTP_REQ_TOO_LONG: i32
[src]
public static final HTTP_REQ_TOO_LONG
pub const HTTP_RESET: i32
[src]
public static final HTTP_RESET
pub const HTTP_SEE_OTHER: i32
[src]
public static final HTTP_SEE_OTHER
pub const HTTP_SERVER_ERROR: i32
[src]
public static final HTTP_SERVER_ERROR
pub const HTTP_UNAUTHORIZED: i32
[src]
public static final HTTP_UNAUTHORIZED
pub const HTTP_UNAVAILABLE: i32
[src]
public static final HTTP_UNAVAILABLE
pub const HTTP_UNSUPPORTED_TYPE: i32
[src]
public static final HTTP_UNSUPPORTED_TYPE
pub const HTTP_USE_PROXY: i32
[src]
public static final HTTP_USE_PROXY
pub const HTTP_VERSION: i32
[src]
public static final HTTP_VERSION
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]
&'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 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"
Trait Implementations
impl AsJValue for HttpURLConnection
impl AsValidJObjectAndEnv for HttpURLConnection
impl Deref for HttpURLConnection
impl JniType for HttpURLConnection
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for HttpURLConnection
impl !Send for HttpURLConnection
impl !Sync for HttpURLConnection
impl Unpin for HttpURLConnection
impl UnwindSafe for HttpURLConnection
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>,