@Internal public final class DateSupport extends Object
Constructor and Description |
---|
DateSupport() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAfter(org.apache.hc.core5.http.MessageHeaders message1,
org.apache.hc.core5.http.MessageHeaders message2,
String headerName)
Tests if the first message is after (newer) than second one
using the given message header for comparison.
|
static boolean |
isBefore(org.apache.hc.core5.http.MessageHeaders message1,
org.apache.hc.core5.http.MessageHeaders message2,
String headerName)
Tests if the first message is before (older) than the second one
using the given message header for comparison.
|
public static boolean isAfter(org.apache.hc.core5.http.MessageHeaders message1, org.apache.hc.core5.http.MessageHeaders message2, String headerName)
message1
- the first messagemessage2
- the second messageheaderName
- header nametrue
if both messages contain a header with the given name
and the value of the header from the first message is newer that of
the second message.public static boolean isBefore(org.apache.hc.core5.http.MessageHeaders message1, org.apache.hc.core5.http.MessageHeaders message2, String headerName)
message1
- the first messagemessage2
- the second messageheaderName
- header nametrue
if both messages contain a header with the given name
and the value of the header from the first message is older that of
the second message.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.