public class WebHeaderCollection extends NameValueCollection
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.WebHeaderCollection
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.WebHeaderCollection, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.WebHeaderCollection
|
static java.lang.String |
className
Qualified class name: System.Net.WebHeaderCollection
|
static JCType |
classType
The type managed from JCOBridge.
|
Null| Constructor and Description |
|---|
WebHeaderCollection()
Initializes a new instance by invoking the .NET constructor.
|
WebHeaderCollection(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Add(HttpRequestHeader header,
java.lang.String value)
Invokes the .NET member Add.
|
void |
Add(HttpResponseHeader header,
java.lang.String value)
Invokes the .NET member Add.
|
void |
Add(java.lang.String header)
Invokes the .NET member Add.
|
void |
Add(java.lang.String name,
java.lang.String value)
Invokes the .NET member Add.
|
static WebHeaderCollection |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into WebHeaderCollection, a cast assert is made to check if types are compatible. |
void |
Clear()
Invokes the .NET member Clear.
|
java.lang.String |
Get(int index)
Invokes the .NET member Get.
|
java.lang.String |
Get(java.lang.String name)
Invokes the .NET member Get.
|
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 |
GetKey(int index)
Invokes the .NET member GetKey.
|
void |
GetObjectData(SerializationInfo serializationInfo,
StreamingContext streamingContext)
Invokes the .NET member GetObjectData.
|
java.lang.String[] |
GetValues(int index)
Invokes the .NET member GetValues.
|
java.lang.String[] |
GetValues(java.lang.String header)
Invokes the .NET member GetValues.
|
static boolean |
IsRestricted(java.lang.String headerName)
Invokes the .NET member IsRestricted.
|
static boolean |
IsRestricted(java.lang.String headerName,
boolean response)
Invokes the .NET member IsRestricted.
|
void |
OnDeserialization(NetObject sender)
Invokes the .NET member OnDeserialization.
|
void |
Remove(HttpRequestHeader header)
Invokes the .NET member Remove.
|
void |
Remove(HttpResponseHeader header)
Invokes the .NET member Remove.
|
void |
Remove(java.lang.String name)
Invokes the .NET member Remove.
|
void |
Set(HttpRequestHeader header,
java.lang.String value)
Invokes the .NET member Set.
|
void |
Set(HttpResponseHeader header,
java.lang.String value)
Invokes the .NET member Set.
|
void |
Set(java.lang.String name,
java.lang.String value)
Invokes the .NET member Set.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
byte[] |
ToByteArray()
Invokes the .NET member ToByteArray.
|
Add, CopyTo, getAllKeys, HasKeysgetCountGetEnumerator, iteratorEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringToIEnumerablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public WebHeaderCollection()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException
java.lang.Throwable - if the .NET constructor failsArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itpublic WebHeaderCollection(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(HttpRequestHeader header, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
header - the argument of type HttpRequestHeadervalue - the argument of type java.lang.Stringjava.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 itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void Add(HttpResponseHeader header, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
header - the argument of type HttpResponseHeadervalue - the argument of type java.lang.Stringjava.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 itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void Add(java.lang.String header)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
header - 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 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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic void Add(java.lang.String name,
java.lang.String value)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
RankException,
ArrayTypeMismatchException
Add in class NameValueCollectionname - the argument of type java.lang.Stringvalue - the argument of type java.lang.Stringjava.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 itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static WebHeaderCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into WebHeaderCollection, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedWebHeaderCollection instancejava.lang.Throwable - in case of error during cast operationpublic void Clear()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
NotSupportedException
Clear in class NameValueCollectionjava.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 itNotSupportedException - if the .NET member raises itpublic java.lang.String Get(int index)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OutOfMemoryException
Get in class NameValueCollectionindex - the argument of type intjava.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 itOutOfMemoryException - if the .NET member raises itpublic java.lang.String Get(java.lang.String name)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentException,
OutOfMemoryException
Get in class NameValueCollectionname - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NameValueCollectionpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NameValueCollectionpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NameValueCollectionnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NameValueCollectionpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NameValueCollectionpublic java.lang.String GetKey(int index)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException
GetKey in class NameValueCollectionindex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
GetObjectData in class NameObjectCollectionBaseserializationInfo - the argument of type SerializationInfostreamingContext - the argument of type StreamingContextjava.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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic java.lang.String[] GetValues(int index)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
RankException,
IndexOutOfRangeException,
ArrayTypeMismatchException
GetValues in class NameValueCollectionindex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic java.lang.String[] GetValues(java.lang.String header)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException
GetValues in class NameValueCollectionheader - the argument of type java.lang.Stringjava.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 itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static boolean IsRestricted(java.lang.String headerName)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
CultureNotFoundException
headerName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic static boolean IsRestricted(java.lang.String headerName,
boolean response)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException
headerName - the argument of type java.lang.Stringresponse - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic void OnDeserialization(NetObject sender) throws java.lang.Throwable
OnDeserialization in class NameObjectCollectionBasesender - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Remove(HttpRequestHeader header) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException
header - the argument of type HttpRequestHeaderjava.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 itNotSupportedException - 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 Remove(HttpResponseHeader header) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException
header - the argument of type HttpResponseHeaderjava.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 itNotSupportedException - 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 Remove(java.lang.String name)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
Remove in class NameValueCollectionname - 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 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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic void Set(HttpRequestHeader header, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
header - the argument of type HttpRequestHeadervalue - the argument of type java.lang.Stringjava.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 itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void Set(HttpResponseHeader header, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
header - the argument of type HttpResponseHeadervalue - the argument of type java.lang.Stringjava.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 itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void Set(java.lang.String name,
java.lang.String value)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
Set in class NameValueCollectionname - the argument of type java.lang.Stringvalue - 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 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 itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NameValueCollectioninstance - the new underlying objectpublic byte[] ToByteArray()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
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 itArgumentNullException - if the .NET member raises it