public class FtpWebRequest extends WebRequest
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.FtpWebRequest
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=9.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.FtpWebRequest
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
FtpWebRequest() |
FtpWebRequest(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Abort()
Invokes the .NET member Abort.
|
IAsyncResult |
BeginGetRequestStream(AsyncCallback callback,
NetObject state)
Invokes the .NET member BeginGetRequestStream.
|
IAsyncResult |
BeginGetResponse(AsyncCallback callback,
NetObject state)
Invokes the .NET member BeginGetResponse.
|
static FtpWebRequest |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into FtpWebRequest, a cast assert is made to check if types are compatible. |
Stream |
EndGetRequestStream(IAsyncResult asyncResult)
Invokes the .NET member EndGetRequestStream.
|
WebResponse |
EndGetResponse(IAsyncResult asyncResult)
Invokes the .NET member EndGetResponse.
|
X509CertificateCollection |
getClientCertificates()
Gets the value of the .NET property ClientCertificates.
|
long |
getContentOffset()
Gets the value of the .NET property ContentOffset.
|
static RequestCachePolicy |
getDefaultCachePolicy()
Gets the value of the .NET property DefaultCachePolicy.
|
boolean |
getEnableSsl()
Gets the value of the .NET property EnableSsl.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
boolean |
getKeepAlive()
Gets the value of the .NET property KeepAlive.
|
int |
getReadWriteTimeout()
Gets the value of the .NET property ReadWriteTimeout.
|
java.lang.String |
getRenameTo()
Gets the value of the .NET property RenameTo.
|
Stream |
GetRequestStream()
Invokes the .NET member GetRequestStream.
|
WebResponse |
GetResponse()
Invokes the .NET member GetResponse.
|
ServicePoint |
getServicePoint()
Gets the value of the .NET property ServicePoint.
|
boolean |
getUseBinary()
Gets the value of the .NET property UseBinary.
|
boolean |
getUsePassive()
Gets the value of the .NET property UsePassive.
|
void |
setClientCertificates(X509CertificateCollection ClientCertificates)
Sets the value of the .NET property ClientCertificates.
|
void |
setContentOffset(long ContentOffset)
Sets the value of the .NET property ContentOffset.
|
static void |
setDefaultCachePolicy(RequestCachePolicy DefaultCachePolicy)
Sets the value of the .NET property DefaultCachePolicy.
|
void |
setEnableSsl(boolean EnableSsl)
Sets the value of the .NET property EnableSsl.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setKeepAlive(boolean KeepAlive)
Sets the value of the .NET property KeepAlive.
|
void |
setReadWriteTimeout(int ReadWriteTimeout)
Sets the value of the .NET property ReadWriteTimeout.
|
void |
setRenameTo(java.lang.String RenameTo)
Sets the value of the .NET property RenameTo.
|
void |
setUseBinary(boolean UseBinary)
Sets the value of the .NET property UseBinary.
|
void |
setUsePassive(boolean UsePassive)
Sets the value of the .NET property UsePassive.
|
Create, Create, CreateDefault, CreateHttp, CreateHttp, getAuthenticationLevel, getCachePolicy, getConnectionGroupName, getContentLength, getContentType, getCredentials, getDefaultWebProxy, getHeaders, getImpersonationLevel, getMethod, getPreAuthenticate, getProxy, GetRequestStreamAsync, getRequestUri, GetResponseAsync, GetSystemWebProxy, getTimeout, getUseDefaultCredentials, RegisterPrefix, setAuthenticationLevel, setCachePolicy, setConnectionGroupName, setContentLength, setContentType, setCredentials, setDefaultWebProxy, setHeaders, setImpersonationLevel, setMethod, setPreAuthenticate, setProxy, setTimeout, setUseDefaultCredentialsGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public FtpWebRequest()
throws java.lang.Throwable
java.lang.Throwablepublic FtpWebRequest(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void Abort()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
OutOfMemoryException,
FormatException,
EventSourceException,
SocketException,
IOException,
WebException
Abort in class WebRequestjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itIOException - if the .NET member raises itWebException - if the .NET member raises itpublic IAsyncResult BeginGetRequestStream(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, ProtocolViolationException, SocketException, IOException, WebException, ObjectDisposedException, ArrayTypeMismatchException, SecurityException
BeginGetRequestStream in class WebRequestcallback - the argument of type AsyncCallbackstate - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itProtocolViolationException - if the .NET member raises itSocketException - if the .NET member raises itIOException - if the .NET member raises itWebException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSecurityException - if the .NET member raises itpublic IAsyncResult BeginGetResponse(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, ObjectDisposedException, TaskSchedulerException, SocketException, IOException, WebException, SecurityException, ArrayTypeMismatchException
BeginGetResponse in class WebRequestcallback - the argument of type AsyncCallbackstate - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itTaskSchedulerException - if the .NET member raises itSocketException - if the .NET member raises itIOException - if the .NET member raises itWebException - if the .NET member raises itSecurityException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static FtpWebRequest cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into FtpWebRequest, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedFtpWebRequest instancejava.lang.Throwable - in case of error during cast operationpublic Stream EndGetRequestStream(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, WaitHandleCannotBeOpenedException, NullReferenceException, IndexOutOfRangeException, FormatException, EventSourceException, AbandonedMutexException
EndGetRequestStream in class WebRequestasyncResult - the argument of type IAsyncResultjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itNullReferenceException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itpublic WebResponse EndGetResponse(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, WaitHandleCannotBeOpenedException, NullReferenceException, IndexOutOfRangeException, FormatException, EventSourceException, AbandonedMutexException
EndGetResponse in class WebRequestasyncResult - the argument of type IAsyncResultjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itNullReferenceException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itpublic X509CertificateCollection getClientCertificates() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic long getContentOffset()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static RequestCachePolicy getDefaultCachePolicy() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getEnableSsl()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class WebRequestpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class WebRequestpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class WebRequestnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class WebRequestpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class WebRequestpublic boolean getKeepAlive()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getReadWriteTimeout()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getRenameTo()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Stream GetRequestStream() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, ProtocolViolationException, WebException, SocketException, IOException, ObjectDisposedException, ArrayTypeMismatchException
GetRequestStream in class WebRequestjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itProtocolViolationException - if the .NET member raises itWebException - if the .NET member raises itSocketException - if the .NET member raises itIOException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic WebResponse GetResponse() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, WebException, SocketException, IOException, ObjectDisposedException, WaitHandleCannotBeOpenedException, AbandonedMutexException, ArrayTypeMismatchException
GetResponse in class WebRequestjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itWebException - if the .NET member raises itSocketException - if the .NET member raises itIOException - if the .NET member raises itObjectDisposedException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic ServicePoint getServicePoint() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, UriFormatException, CultureNotFoundException, FormatException, InvalidTimeZoneException, OverflowException, RankException, ArrayTypeMismatchException, InvalidCastException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itUriFormatException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itFormatException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itOverflowException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itpublic boolean getUseBinary()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getUsePassive()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setClientCertificates(X509CertificateCollection ClientCertificates) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
ClientCertificates - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void setContentOffset(long ContentOffset)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
ContentOffset - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic static void setDefaultCachePolicy(RequestCachePolicy DefaultCachePolicy) throws java.lang.Throwable
DefaultCachePolicy - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setEnableSsl(boolean EnableSsl)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
EnableSsl - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class WebRequestinstance - the new underlying objectpublic void setKeepAlive(boolean KeepAlive)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
KeepAlive - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setReadWriteTimeout(int ReadWriteTimeout)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
ReadWriteTimeout - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setRenameTo(java.lang.String RenameTo)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
RenameTo - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setUseBinary(boolean UseBinary)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
UseBinary - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setUsePassive(boolean UsePassive)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
UsePassive - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises it