org.apache.http.impl.cookie
Class BestMatchSpecFactory

java.lang.Object
  extended by org.apache.http.impl.cookie.BestMatchSpecFactory
All Implemented Interfaces:
CookieSpecFactory, CookieSpecProvider

@Immutable
public class BestMatchSpecFactory
extends Object
implements CookieSpecFactory, CookieSpecProvider

CookieSpecProvider implementation that creates and initializes BestMatchSpec instances.

Since:
4.0

Constructor Summary
BestMatchSpecFactory()
           
BestMatchSpecFactory(String[] datepatterns, boolean oneHeader)
           
 
Method Summary
 CookieSpec create(HttpContext context)
          Creates an instance of CookieSpec.
 CookieSpec newInstance(HttpParams params)
          Creates an instance of CookieSpec using given HTTP parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BestMatchSpecFactory

public BestMatchSpecFactory(String[] datepatterns,
                            boolean oneHeader)

BestMatchSpecFactory

public BestMatchSpecFactory()
Method Detail

newInstance

public CookieSpec newInstance(HttpParams params)
Description copied from interface: CookieSpecFactory
Creates an instance of CookieSpec using given HTTP parameters.

Specified by:
newInstance in interface CookieSpecFactory
Parameters:
params - HTTP parameters.
Returns:
cookie spec.

create

public CookieSpec create(HttpContext context)
Description copied from interface: CookieSpecProvider
Creates an instance of CookieSpec.

Specified by:
create in interface CookieSpecProvider
Returns:
auth scheme.


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.