public class WebRequest extends MarshalByRefObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.WebRequest
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Net.Requests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.Requests
|
static java.lang.String |
className
Qualified class name: System.Net.WebRequest
|
static org.mases.jcobridge.JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
WebRequest() |
WebRequest(java.lang.Object instance)
Internal constructor.
|
GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public static org.mases.jcobridge.JCType classType
JCTypepublic WebRequest()
throws java.lang.Throwable
java.lang.Throwablepublic WebRequest(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic void Abort()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public IAsyncResult BeginGetRequestStream(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public IAsyncResult BeginGetResponse(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public static WebRequest cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into WebRequest, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedWebRequest instancejava.lang.Throwable - in case of error during cast operationpublic static WebRequest Create(java.lang.String requestUriString) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, OutOfMemoryException, ExternalException, CultureNotFoundException, IndexOutOfRangeException, UnreachableException, UriFormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUnreachableExceptionUriFormatExceptionpublic static WebRequest Create(Uri requestUri) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, NullReferenceException, UnreachableException, OutOfMemoryException, UriFormatException, CultureNotFoundException, ExternalException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionNullReferenceExceptionUnreachableExceptionOutOfMemoryExceptionUriFormatExceptionCultureNotFoundExceptionExternalExceptionpublic static WebRequest CreateDefault(Uri requestUri) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, NullReferenceException, UnreachableException, OutOfMemoryException, UriFormatException, CultureNotFoundException, ExternalException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionNullReferenceExceptionUnreachableExceptionOutOfMemoryExceptionUriFormatExceptionCultureNotFoundExceptionExternalExceptionpublic static HttpWebRequest CreateHttp(java.lang.String requestUriString) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, OutOfMemoryException, ExternalException, CultureNotFoundException, IndexOutOfRangeException, UnreachableException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUnreachableExceptionpublic static HttpWebRequest CreateHttp(Uri requestUri) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, NullReferenceException, UriFormatException, CultureNotFoundException, OutOfMemoryException, ExternalException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionNullReferenceExceptionUriFormatExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionpublic Stream EndGetRequestStream(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public WebResponse EndGetResponse(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public AuthenticationLevel getAuthenticationLevel() throws java.lang.Throwable
java.lang.Throwablepublic RequestCachePolicy getCachePolicy() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getConnectionGroupName()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public long getContentLength()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public java.lang.String getContentType()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public ICredentials getCredentials() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public static RequestCachePolicy getDefaultCachePolicy() throws java.lang.Throwable
java.lang.Throwablepublic static IWebProxy getDefaultWebProxy() throws java.lang.Throwable, MissingMemberException, InvalidOperationException, NotSupportedException, ArgumentException, PlatformNotSupportedException
java.lang.ThrowableMissingMemberExceptionInvalidOperationExceptionNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionpublic WebHeaderCollection getHeaders() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public TokenImpersonationLevel getImpersonationLevel() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MarshalByRefObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MarshalByRefObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MarshalByRefObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MarshalByRefObjectString representing the name used to allocated the object
in CLR contextpublic org.mases.jcobridge.JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class MarshalByRefObjectJCType representing the CLR Type of the instantiated Classpublic java.lang.String getMethod()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public boolean getPreAuthenticate()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public IWebProxy getProxy() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public Stream GetRequestStream() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public Task_1 GetRequestStreamAsync() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException
public Uri getRequestUri() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public WebResponse GetResponse() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public Task_1 GetResponseAsync() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException
public static IWebProxy GetSystemWebProxy() throws java.lang.Throwable, MissingMemberException, InvalidOperationException, PlatformNotSupportedException, NotSupportedException, ArgumentException
java.lang.ThrowableMissingMemberExceptionInvalidOperationExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionpublic int getTimeout()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public boolean getUseDefaultCredentials()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public static boolean RegisterPrefix(java.lang.String prefix,
IWebRequestCreate creator)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
CultureNotFoundException,
IndexOutOfRangeException,
UnreachableException,
UriFormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionUnreachableExceptionUriFormatExceptionpublic void setAuthenticationLevel(AuthenticationLevel AuthenticationLevel) throws java.lang.Throwable
java.lang.Throwablepublic void setCachePolicy(RequestCachePolicy CachePolicy) throws java.lang.Throwable
java.lang.Throwablepublic void setConnectionGroupName(java.lang.String ConnectionGroupName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setContentLength(long ContentLength)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setContentType(java.lang.String ContentType)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setCredentials(ICredentials Credentials) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public static void setDefaultCachePolicy(RequestCachePolicy DefaultCachePolicy) throws java.lang.Throwable
java.lang.Throwablepublic static void setDefaultWebProxy(IWebProxy DefaultWebProxy) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public void setHeaders(WebHeaderCollection Headers) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public void setImpersonationLevel(TokenImpersonationLevel ImpersonationLevel) throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(org.mases.jcobridge.JCObject instance)
setJCOInstance in class MarshalByRefObjectpublic void setMethod(java.lang.String Method)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setPreAuthenticate(boolean PreAuthenticate)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setProxy(IWebProxy Proxy) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public void setTimeout(int Timeout)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setUseDefaultCredentials(boolean UseDefaultCredentials)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException