public final class Rfc1123DateMatcher extends org.hamcrest.TypeSafeMatcher<Header>
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT |
| Constructor and Description |
|---|
Rfc1123DateMatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
org.joda.time.DateTime |
getDateTime(String rawString)
Parse a string as if it is an RFC1123-compliant date.
|
protected boolean |
matchesSafely(Header dateHeader) |
describeMismatch, describeMismatchSafely, matchespublic static final String DATE_FORMAT
public org.joda.time.DateTime getDateTime(String rawString)
rawString - The original String.protected boolean matchesSafely(Header dateHeader)
matchesSafely in class org.hamcrest.TypeSafeMatcher<Header>public void describeTo(org.hamcrest.Description description)
Copyright © 2012. All Rights Reserved.