public class CookieContainer extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.CookieContainer
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.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.Primitives
|
static java.lang.String |
className
Qualified class name: System.Net.CookieContainer
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
CookieContainer()
Initializes a new instance by invoking the .NET constructor.
|
CookieContainer(int capacity)
Initializes a new instance by invoking the .NET constructor.
|
CookieContainer(int capacity,
int perDomainCapacity,
int maxCookieSize)
Initializes a new instance by invoking the .NET constructor.
|
CookieContainer(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Add(Cookie cookie)
Invokes the .NET member Add.
|
void |
Add(CookieCollection cookies)
Invokes the .NET member Add.
|
void |
Add(Uri uri,
Cookie cookie)
Invokes the .NET member Add.
|
void |
Add(Uri uri,
CookieCollection cookies)
Invokes the .NET member Add.
|
static CookieContainer |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into CookieContainer, a cast assert is made to check if types are compatible. |
CookieCollection |
GetAllCookies()
Invokes the .NET member GetAllCookies.
|
int |
getCapacity()
Gets the value of the .NET property Capacity.
|
java.lang.String |
GetCookieHeader(Uri uri)
Invokes the .NET member GetCookieHeader.
|
CookieCollection |
GetCookies(Uri uri)
Invokes the .NET member GetCookies.
|
int |
getCount()
Gets the value of the .NET property Count.
|
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. |
int |
getMaxCookieSize()
Gets the value of the .NET property MaxCookieSize.
|
int |
getPerDomainCapacity()
Gets the value of the .NET property PerDomainCapacity.
|
void |
setCapacity(int Capacity)
Sets the value of the .NET property Capacity.
|
void |
SetCookies(Uri uri,
java.lang.String cookieHeader)
Invokes the .NET member SetCookies.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setMaxCookieSize(int MaxCookieSize)
Sets the value of the .NET property MaxCookieSize.
|
void |
setPerDomainCapacity(int PerDomainCapacity)
Sets the value of the .NET property PerDomainCapacity.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public CookieContainer()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
FormatException
java.lang.Throwable - if the .NET constructor failsArgumentException - 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 itFormatException - if the .NET member raises itpublic CookieContainer(int capacity)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
FormatException
capacity - the argument of type intjava.lang.Throwable - if the .NET constructor failsArgumentException - 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 itFormatException - if the .NET member raises itpublic CookieContainer(int capacity,
int perDomainCapacity,
int maxCookieSize)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
IndexOutOfRangeException
capacity - the argument of type intperDomainCapacity - the argument of type intmaxCookieSize - the argument of type intjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic CookieContainer(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 Add(Cookie cookie) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, ExternalException, CultureNotFoundException, UnreachableException, CookieException, InvalidTimeZoneException, OverflowException, UriFormatException
cookie - the argument of type Cookiejava.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 itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itExternalException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itUnreachableException - if the .NET member raises itCookieException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itOverflowException - if the .NET member raises itUriFormatException - if the .NET member raises itpublic void Add(CookieCollection cookies) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, CultureNotFoundException, UnreachableException, FormatException, CookieException, OverflowException, UriFormatException
cookies - the argument of type CookieCollectionjava.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 itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itUnreachableException - if the .NET member raises itFormatException - if the .NET member raises itCookieException - if the .NET member raises itOverflowException - if the .NET member raises itUriFormatException - if the .NET member raises itpublic void Add(Uri uri, Cookie cookie) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, InvalidTimeZoneException, OverflowException, UnreachableException, FormatException, CookieException, UriFormatException, OutOfMemoryException, CultureNotFoundException
uri - the argument of type Uricookie - the argument of type Cookiejava.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 itIndexOutOfRangeException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itOverflowException - if the .NET member raises itUnreachableException - if the .NET member raises itFormatException - if the .NET member raises itCookieException - if the .NET member raises itUriFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic void Add(Uri uri, CookieCollection cookies) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, UnreachableException, IndexOutOfRangeException, UriFormatException, OutOfMemoryException, InvalidTimeZoneException, OverflowException, CookieException, CultureNotFoundException
uri - the argument of type Uricookies - the argument of type CookieCollectionjava.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 itUnreachableException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itUriFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itOverflowException - if the .NET member raises itCookieException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic static CookieContainer cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into CookieContainer, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedCookieContainer instancejava.lang.Throwable - in case of error during cast operationpublic CookieCollection GetAllCookies() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
java.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 itpublic int getCapacity()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String GetCookieHeader(Uri uri) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, UriFormatException, OutOfMemoryException, UnreachableException, CultureNotFoundException, OverflowException, FormatException
uri - the argument of type Urijava.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 itIndexOutOfRangeException - if the .NET member raises itUriFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itUnreachableException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itpublic CookieCollection GetCookies(Uri uri) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, UriFormatException, OutOfMemoryException, UnreachableException, ExternalException, CultureNotFoundException, OverflowException
uri - the argument of type Urijava.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 itIndexOutOfRangeException - if the .NET member raises itUriFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itUnreachableException - if the .NET member raises itExternalException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOverflowException - if the .NET member raises itpublic int getCount()
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 NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic int getMaxCookieSize()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getPerDomainCapacity()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setCapacity(int Capacity)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
OverflowException,
RankException,
IndexOutOfRangeException,
ArrayTypeMismatchException
Capacity - 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 itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOverflowException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void SetCookies(Uri uri, java.lang.String cookieHeader) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, FormatException, EventSourceException, UnreachableException, UriFormatException, OverflowException, CultureNotFoundException, TypeInitializationException, CookieException
uri - the argument of type UricookieHeader - the argument of type java.lang.Stringjava.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 itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itUnreachableException - if the .NET member raises itUriFormatException - if the .NET member raises itOverflowException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itTypeInitializationException - if the .NET member raises itCookieException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setMaxCookieSize(int MaxCookieSize)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
MaxCookieSize - 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 itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - 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 itpublic void setPerDomainCapacity(int PerDomainCapacity)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
OverflowException
PerDomainCapacity - 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 itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - 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 itFormatException - if the .NET member raises itOverflowException - if the .NET member raises it