Package system.net
Class WebHeaderCollection
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.Iterable<NetObject>
,IEnumerable
,IJCOBridgeReflected
public class WebHeaderCollection extends NameValueCollection
The base .NET class managing System.Net.WebHeaderCollection, System.Net.WebHeaderCollection, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.WebHeaderCollection
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Net.WebHeaderCollection, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Net.WebHeaderCollectionstatic java.lang.String
className
Qualified class name: System.Net.WebHeaderCollectionstatic JCType
classType
The type managed from JCOBridge.-
Fields inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
Null
-
-
Constructor Summary
Constructors Constructor Description WebHeaderCollection()
WebHeaderCollection(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Add(java.lang.String header)
void
Add(java.lang.String name, java.lang.String value)
void
Add(HttpRequestHeader header, java.lang.String value)
void
Add(HttpResponseHeader header, java.lang.String value)
static WebHeaderCollection
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoWebHeaderCollection
, a cast assert is made to check if types are compatible.void
Clear()
java.lang.String
Get(int index)
java.lang.String
Get(java.lang.String name)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typejava.lang.String
GetKey(int index)
void
GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
java.lang.String[]
GetValues(int index)
java.lang.String[]
GetValues(java.lang.String header)
static boolean
IsRestricted(java.lang.String headerName)
static boolean
IsRestricted(java.lang.String headerName, boolean response)
void
OnDeserialization(NetObject sender)
void
Remove(java.lang.String name)
void
Remove(HttpRequestHeader header)
void
Remove(HttpResponseHeader header)
void
Set(java.lang.String name, java.lang.String value)
void
Set(HttpRequestHeader header, java.lang.String value)
void
Set(HttpResponseHeader header, java.lang.String value)
void
setJCOInstance(JCObject instance)
byte[]
ToByteArray()
-
Methods inherited from class system.collections.specialized.NameValueCollection
Add, CopyTo, getAllKeys, HasKeys
-
Methods inherited from class system.collections.specialized.NameObjectCollectionBase
getCount
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
GetEnumerator, iterator
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Net.WebHeaderCollection, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Net.WebHeaderCollection- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Net.WebHeaderCollection- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebHeaderCollection
public WebHeaderCollection(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
WebHeaderCollection
public WebHeaderCollection() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNameValueCollection
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNameValueCollection
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNameValueCollection
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNameValueCollection
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNameValueCollection
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNameValueCollection
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static WebHeaderCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoWebHeaderCollection
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
WebHeaderCollection
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsRestricted
public static boolean IsRestricted(java.lang.String headerName, boolean response) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException
-
IsRestricted
public static boolean IsRestricted(java.lang.String headerName) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException
-
ToByteArray
public byte[] ToByteArray() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
Get
public java.lang.String Get(int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException
- Overrides:
Get
in classNameValueCollection
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
OutOfMemoryException
-
Get
public java.lang.String Get(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, OutOfMemoryException
- Overrides:
Get
in classNameValueCollection
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
PlatformNotSupportedException
ArrayTypeMismatchException
ArgumentException
OutOfMemoryException
-
GetKey
public java.lang.String GetKey(int index) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException
- Overrides:
GetKey
in classNameValueCollection
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
PlatformNotSupportedException
-
GetValues
public java.lang.String[] GetValues(int index) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
- Overrides:
GetValues
in classNameValueCollection
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
PlatformNotSupportedException
ArgumentNullException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidCastException
-
GetValues
public java.lang.String[] GetValues(java.lang.String header) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
- Overrides:
GetValues
in classNameValueCollection
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
PlatformNotSupportedException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
-
Add
public void Add(HttpRequestHeader header, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
-
Add
public void Add(HttpResponseHeader header, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
-
Add
public void Add(java.lang.String name, java.lang.String value) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException, InvalidOperationException
- Overrides:
Add
in classNameValueCollection
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
InvalidOperationException
-
Add
public void Add(java.lang.String header) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
-
Clear
public void Clear() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
- Overrides:
Clear
in classNameValueCollection
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
-
GetObjectData
public void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
- Overrides:
GetObjectData
in classNameObjectCollectionBase
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
-
OnDeserialization
public void OnDeserialization(NetObject sender) throws java.lang.Throwable
- Overrides:
OnDeserialization
in classNameObjectCollectionBase
- Throws:
java.lang.Throwable
-
Remove
public void Remove(HttpRequestHeader header) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidCastException
-
Remove
public void Remove(HttpResponseHeader header) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidCastException
-
Remove
public void Remove(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
- Overrides:
Remove
in classNameValueCollection
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
-
Set
public void Set(HttpRequestHeader header, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
-
Set
public void Set(HttpResponseHeader header, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
-
Set
public void Set(java.lang.String name, java.lang.String value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
- Overrides:
Set
in classNameValueCollection
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
-
-