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.StringassemblyFullNameFully assembly qualified name: System.Net.WebHeaderCollection, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Net.WebHeaderCollectionstatic java.lang.StringclassNameQualified class name: System.Net.WebHeaderCollectionstatic JCTypeclassTypeThe 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 voidAdd(java.lang.String header)voidAdd(java.lang.String name, java.lang.String value)voidAdd(HttpRequestHeader header, java.lang.String value)voidAdd(HttpResponseHeader header, java.lang.String value)static WebHeaderCollectioncast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoWebHeaderCollection, a cast assert is made to check if types are compatible.voidClear()java.lang.StringGet(int index)java.lang.StringGet(java.lang.String name)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typejava.lang.StringGetKey(int index)voidGetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)java.lang.String[]GetValues(int index)java.lang.String[]GetValues(java.lang.String header)static booleanIsRestricted(java.lang.String headerName)static booleanIsRestricted(java.lang.String headerName, boolean response)voidOnDeserialization(NetObject sender)voidRemove(java.lang.String name)voidRemove(HttpRequestHeader header)voidRemove(HttpResponseHeader header)voidSet(java.lang.String name, java.lang.String value)voidSet(HttpRequestHeader header, java.lang.String value)voidSet(HttpResponseHeader header, java.lang.String value)voidsetJCOInstance(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.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
WebHeaderCollection
public WebHeaderCollection() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNameValueCollection- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNameValueCollection- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNameValueCollection- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNameValueCollection- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNameValueCollection
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNameValueCollection- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static WebHeaderCollection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoWebHeaderCollection, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
WebHeaderCollectioninstance- 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.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
Get
public java.lang.String Get(int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException- Overrides:
Getin classNameValueCollection- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOutOfMemoryException
-
Get
public java.lang.String Get(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, OutOfMemoryException- Overrides:
Getin classNameValueCollection- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionArgumentExceptionOutOfMemoryException
-
GetKey
public java.lang.String GetKey(int index) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException- Overrides:
GetKeyin classNameValueCollection- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionPlatformNotSupportedException
-
GetValues
public java.lang.String[] GetValues(int index) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException- Overrides:
GetValuesin classNameValueCollection- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentNullExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidCastException
-
GetValues
public java.lang.String[] GetValues(java.lang.String header) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException- Overrides:
GetValuesin classNameValueCollection- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastException
-
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.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastException
-
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.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastException
-
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:
Addin classNameValueCollection- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionInvalidOperationException
-
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:
Clearin classNameValueCollection- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedException
-
GetObjectData
public void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
- Overrides:
GetObjectDatain classNameObjectCollectionBase- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedException
-
OnDeserialization
public void OnDeserialization(NetObject sender) throws java.lang.Throwable
- Overrides:
OnDeserializationin 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.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidCastException
-
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.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidCastException
-
Remove
public void Remove(java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException- Overrides:
Removein classNameValueCollection- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeException
-
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.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastException
-
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.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastException
-
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:
Setin classNameValueCollection- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeException
-
-