Class HTTPHeaders
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.remoteviz.rendering.HTTPHeaders
- All Implemented Interfaces:
Cloneable
This class represents the header configuration options for an HTTP request and response.
Note that
HTTPHeaders
treats header names in a case-insensitive manner.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given header value under the given name.void
clear()
Removes all headers.clone()
long
count()
Gets the number of HTTP headers.boolean
Determines if the headers collection contains a header of the specified name, with any value.getNameAt
(long index) Retrieves the header name from a collection index.Retrieves the value of a given header.void
Removes the header value under the given name.Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
Method Details
-
clone
-
getNameAt
Retrieves the header name from a collection index.- Parameters:
index
- index of the header to retrieve- Returns:
- the header name at the given index or an empty string if the given index does not exist.
-
remove
Removes the header value under the given name.- Parameters:
name
- the name of the header to remove from the collection.
-
getValue
Retrieves the value of a given header.- Parameters:
name
- the name of the header to check- Returns:
- the value of the given header name or an empty string if the given header does not exist.
-
add
Adds the given header value under the given name. If a header already exists with the given name, its value will be overwritten.- Parameters:
name
- the header to add to the collection.value
- the content of the header.
-
clear
public void clear()Removes all headers. -
exists
Determines if the headers collection contains a header of the specified name, with any value. param name the name of the header to check- Returns:
- true if the given header exists.
-
count
public long count()Gets the number of HTTP headers.- Returns:
- number of HTTP headers.
-