More Immutable classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@756298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1326d80e52
commit
3994fe9af2
|
@ -41,6 +41,8 @@ import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
|
||||||
|
import net.jcip.annotations.Immutable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A utility class for parsing and formatting HTTP dates as used in cookies and
|
* A utility class for parsing and formatting HTTP dates as used in cookies and
|
||||||
* other headers. This class handles dates as defined by RFC 2616 section
|
* other headers. This class handles dates as defined by RFC 2616 section
|
||||||
|
@ -49,6 +51,7 @@ import java.util.TimeZone;
|
||||||
*
|
*
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
|
@Immutable
|
||||||
public final class DateUtils {
|
public final class DateUtils {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -35,6 +35,8 @@ import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import net.jcip.annotations.Immutable;
|
||||||
|
|
||||||
import org.apache.http.Header;
|
import org.apache.http.Header;
|
||||||
import org.apache.http.HeaderElement;
|
import org.apache.http.HeaderElement;
|
||||||
import org.apache.http.cookie.ClientCookie;
|
import org.apache.http.cookie.ClientCookie;
|
||||||
|
@ -52,7 +54,7 @@ import org.apache.http.util.CharArrayBuffer;
|
||||||
*
|
*
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
|
@Immutable
|
||||||
public class RFC2109Spec extends CookieSpecBase {
|
public class RFC2109Spec extends CookieSpecBase {
|
||||||
|
|
||||||
private final static CookiePathComparator PATH_COMPARATOR = new CookiePathComparator();
|
private final static CookiePathComparator PATH_COMPARATOR = new CookiePathComparator();
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
|
|
||||||
package org.apache.http.impl.cookie;
|
package org.apache.http.impl.cookie;
|
||||||
|
|
||||||
|
import net.jcip.annotations.Immutable;
|
||||||
|
|
||||||
import org.apache.http.cookie.ClientCookie;
|
import org.apache.http.cookie.ClientCookie;
|
||||||
import org.apache.http.cookie.Cookie;
|
import org.apache.http.cookie.Cookie;
|
||||||
import org.apache.http.cookie.CookieAttributeHandler;
|
import org.apache.http.cookie.CookieAttributeHandler;
|
||||||
|
@ -44,6 +46,7 @@ import org.apache.http.cookie.SetCookie2;
|
||||||
*
|
*
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
|
@Immutable
|
||||||
public class RFC2965VersionAttributeHandler implements CookieAttributeHandler {
|
public class RFC2965VersionAttributeHandler implements CookieAttributeHandler {
|
||||||
|
|
||||||
public RFC2965VersionAttributeHandler() {
|
public RFC2965VersionAttributeHandler() {
|
||||||
|
|
Loading…
Reference in New Issue