public class Cookie extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.Cookie
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=9.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.Cookie
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Cookie()
Initializes a new instance by invoking the .NET constructor.
|
Cookie(java.lang.Object instance)
Internal constructor.
|
Cookie(java.lang.String name,
java.lang.String value)
Initializes a new instance by invoking the .NET constructor.
|
Cookie(java.lang.String name,
java.lang.String value,
java.lang.String path)
Initializes a new instance by invoking the .NET constructor.
|
Cookie(java.lang.String name,
java.lang.String value,
java.lang.String path,
java.lang.String domain)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Cookie |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Cookie, a cast assert is made to check if types are compatible. |
java.lang.String |
getComment()
Gets the value of the .NET property Comment.
|
Uri |
getCommentUri()
Gets the value of the .NET property CommentUri.
|
boolean |
getDiscard()
Gets the value of the .NET property Discard.
|
java.lang.String |
getDomain()
Gets the value of the .NET property Domain.
|
boolean |
getExpired()
Gets the value of the .NET property Expired.
|
DateTime |
getExpires()
Gets the value of the .NET property Expires.
|
boolean |
getHttpOnly()
Gets the value of the .NET property HttpOnly.
|
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. |
java.lang.String |
getName()
Gets the value of the .NET property Name.
|
java.lang.String |
getPath()
Gets the value of the .NET property Path.
|
java.lang.String |
getPort()
Gets the value of the .NET property Port.
|
boolean |
getSecure()
Gets the value of the .NET property Secure.
|
DateTime |
getTimeStamp()
Gets the value of the .NET property TimeStamp.
|
java.lang.String |
getValue()
Gets the value of the .NET property Value.
|
int |
getVersion()
Gets the value of the .NET property Version.
|
void |
setComment(java.lang.String Comment)
Sets the value of the .NET property Comment.
|
void |
setCommentUri(Uri CommentUri)
Sets the value of the .NET property CommentUri.
|
void |
setDiscard(boolean Discard)
Sets the value of the .NET property Discard.
|
void |
setDomain(java.lang.String Domain)
Sets the value of the .NET property Domain.
|
void |
setExpired(boolean Expired)
Sets the value of the .NET property Expired.
|
void |
setExpires(DateTime Expires)
Sets the value of the .NET property Expires.
|
void |
setHttpOnly(boolean HttpOnly)
Sets the value of the .NET property HttpOnly.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setName(java.lang.String Name)
Sets the value of the .NET property Name.
|
void |
setPath(java.lang.String Path)
Sets the value of the .NET property Path.
|
void |
setPort(java.lang.String Port)
Sets the value of the .NET property Port.
|
void |
setSecure(boolean Secure)
Sets the value of the .NET property Secure.
|
void |
setValue(java.lang.String Value)
Sets the value of the .NET property Value.
|
void |
setVersion(int Version)
Sets the value of the .NET property Version.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Cookie()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException
java.lang.Throwable - if the .NET constructor failsArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Cookie(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 Cookie(java.lang.String name,
java.lang.String value)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentNullException,
UnreachableException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException,
CookieException
name - the argument of type java.lang.Stringvalue - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itUnreachableException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itCookieException - if the .NET member raises itpublic Cookie(java.lang.String name,
java.lang.String value,
java.lang.String path)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentNullException,
UnreachableException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
CookieException
name - the argument of type java.lang.Stringvalue - the argument of type java.lang.Stringpath - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itUnreachableException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCookieException - if the .NET member raises itpublic Cookie(java.lang.String name,
java.lang.String value,
java.lang.String path,
java.lang.String domain)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentNullException,
UnreachableException,
ObjectDisposedException,
InvalidOperationException,
FormatException,
CookieException
name - the argument of type java.lang.Stringvalue - the argument of type java.lang.Stringpath - the argument of type java.lang.Stringdomain - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itUnreachableException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itCookieException - if the .NET member raises itpublic static Cookie cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Cookie, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedCookie instancejava.lang.Throwable - in case of error during cast operationpublic java.lang.String getComment()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Uri getCommentUri() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getDiscard()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getDomain()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getExpired()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
InvalidTimeZoneException,
InvalidOperationException,
PlatformNotSupportedException,
UnauthorizedAccessException,
IOException,
NullReferenceException,
NotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic DateTime getExpires() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getHttpOnly()
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 java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getPath()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getPort()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getSecure()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic DateTime getTimeStamp() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getValue()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getVersion()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setComment(java.lang.String Comment)
throws java.lang.Throwable
Comment - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setCommentUri(Uri CommentUri) throws java.lang.Throwable
CommentUri - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setDiscard(boolean Discard)
throws java.lang.Throwable
Discard - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setDomain(java.lang.String Domain)
throws java.lang.Throwable
Domain - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setExpired(boolean Expired)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException
Expired - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic void setExpires(DateTime Expires) throws java.lang.Throwable
Expires - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setHttpOnly(boolean HttpOnly)
throws java.lang.Throwable
HttpOnly - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setName(java.lang.String Name)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentNullException,
UnreachableException,
FormatException,
CookieException
Name - the new value of the propertyjava.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 itIndexOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itUnreachableException - if the .NET member raises itFormatException - if the .NET member raises itCookieException - if the .NET member raises itpublic void setPath(java.lang.String Path)
throws java.lang.Throwable
Path - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setPort(java.lang.String Port)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
NotSupportedException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException,
CookieException,
NullReferenceException
Port - 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 itNotSupportedException - if the .NET member raises itPlatformNotSupportedException - 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 itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCookieException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic void setSecure(boolean Secure)
throws java.lang.Throwable
Secure - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setValue(java.lang.String Value)
throws java.lang.Throwable
Value - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setVersion(int Version)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
Version - 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 it