public class RedirectHeader extends AbstractHeader<RedirectHeader>
AbstractHeader, acting similar to an HTTP redirect header.
It encapsulates a list of URL locations that a request can be redirected to.
This class is useful in scenarios where a request needs to be redirected to multiple potential locations.
EMPTYDISCARD| Constructor and Description |
|---|
RedirectHeader(List<String> locations)
Constructs a new RedirectHeader instance, populating its internal list of
URL locations with the provided list.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
locations()
Retrieves an unmodifiable view of the list of URL locations to which the request can be redirected.
|
sessionName, sessionName, systemContext, systemContextusesSelfDescribingMessageequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, wait$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldpublic RedirectHeader(List<String> locations)
locations - A list of URLs to which the request can be redirected. This list is copied to prevent external modification.Copyright © 2023. All rights reserved.