4#include <system/collections/dictionary.h>
5#include <system/collections/icomparer.h>
6#include <system/collections/keyvalue_pair.h>
7#include <system/collections/sorted_list.h>
8#include <system/object.h>
10#include <net/cookie.h>
11#include <net/cookie_collection.h>
13namespace System {
namespace Net {
27 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
29 ASPOSECPP_SHARED_RTTI_INFO_DECL();
65 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
67 ASPOSECPP_SHARED_RTTI_INFO_DECL();
79 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
90 int32_t
Compare(args_type x, args_type y)
const override;
145 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
147 ASPOSECPP_SHARED_RTTI_INFO_DECL();
190 ASPOSECPP_SHARED_API
CookieContainer(int32_t capacity, int32_t perDomainCapacity, int32_t maxCookieSize);
217 String setCookieHeader,
bool isThrow);
247 int32_t _maxCookieSize;
251 int32_t _maxCookiesPerDomain;
260 bool AgeCookies(
String domain);
275 bool matchOnlyPlainCookie);
287 static struct __StaticConstructor__
289 __StaticConstructor__();
Interface that compares two objects in greater-equal-less sense. Objects of this class should only be...
Definition: icomparer.h:20
Interface of enumerator which can be used to iterate through some elements. Objects of this class sho...
Definition: ienumerator.h:63
Pair of key and value. This type should be allocated on stack and passed to functions by value or by ...
Definition: keyvalue_pair.h:20
List forward declaration.
Definition: list.h:127
Sorted list wrapping FlatMap structure. Objects of this class should only be allocated using System::...
Definition: sorted_list.h:334
Provides a container for the CookieCollection-class instances. Objects of this class should only be a...
Definition: cookie_container.h:138
System::SharedPtr< CookieCollection > GetCookies(System::SharedPtr< Uri > uri)
Returns a collection of cookies that are associated with the specified URI.
bool IsLocalDomain(String host)
Checks if the specified domain is localhost.
int32_t get_Capacity()
Gets the collection capacity.
void Add(System::SharedPtr< CookieCollection > cookies)
Copies cookies from the specified collection to the current one.
CookieContainer(int32_t capacity, int32_t perDomainCapacity, int32_t maxCookieSize)
Constructs a new instance.
int32_t get_Count()
Returns the number of the collection's items.
static const int32_t DefaultPerDomainCookieLimit
The maximum number of collection items per domain.
Definition: cookie_container.h:153
System::SharedPtr< CookieCollection > InternalGetCookies(System::SharedPtr< Uri > uri)
Returns a collection of cookies that are associated with the specified URI.
CookieContainer(int32_t capacity)
Constructs a new instance.
void Add(System::SharedPtr< Uri > uri, System::SharedPtr< Cookie > cookie)
Adds a cookie for the specified URI.
void set_PerDomainCapacity(int32_t value)
Sets the collection capacity per domain.
String GetCookieHeader(System::SharedPtr< Uri > uri)
Return an HTTP header that contains cookies associated with the specified URI.
void SetCookies(System::SharedPtr< Uri > uri, String cookieHeader)
Copies cookies from the specified header to the collection and associates them with the specified URI...
void set_MaxCookieSize(int32_t value)
Sets the maximum cookie size.
void set_Capacity(int32_t value)
Sets the collection capacity.
CookieContainer()
Constructs a new instance.
String GetCookieHeader(System::SharedPtr< Uri > uri, String &optCookie2)
Return an HTTP header that contains cookies associated with the specified URI.
void Add(System::SharedPtr< Cookie > cookie)
Adds a cookie to the collection.
int32_t get_PerDomainCapacity()
Gets the collection capacity per domain.
void Add(System::SharedPtr< Uri > uri, System::SharedPtr< CookieCollection > cookies)
Copies cookies from the specified collection for the specified URI to the current collection.
static const int32_t DefaultCookieLimit
The maximum number of collection items.
Definition: cookie_container.h:151
void Add(System::SharedPtr< Cookie > cookie, bool throwOnError)
Adds a cookie to the collection.
System::SharedPtr< CookieCollection > CookieCutter(System::SharedPtr< Uri > uri, String headerName, String setCookieHeader, bool isThrow)
Copies cookies from the specified HTTP header for the specified URI.
static const int32_t DefaultCookieLengthLimit
The maximum cookie size.
Definition: cookie_container.h:155
int32_t get_MaxCookieSize()
Gets the maximum cookie size.
Represents the list of the CookieCollection class instances. Objects of this class should only be all...
Definition: cookie_container.h:58
int32_t GetCookiesCount()
Returns the number of cookies of all collection items.
System::SharedPtr< CookieCollection > idx_get(String s)
Gets the cookie collection by specified path.
static System::SharedPtr< PathList > Create()
Creates a new instance.
System::SharedPtr< Collections::Generic::IEnumerator< Collections::Generic::KeyValuePair< String, System::SharedPtr< CookieCollection > > > > GetEnumerator()
Returns the enumerator for the current collection.
int32_t get_Count() const
Returns the number of items.
void idx_set(String s, System::SharedPtr< CookieCollection > value)
Sets the cookie collection by specified path.
System::SharedPtr< Object > get_SyncRoot() const
Returns the object through which the collection is being synchronized.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
CookieVariant
Enumerates the cookie specifications.
Definition: cookie.h:16
Definition: db_command.h:9
std::enable_if_t<!std::is_floating_point< TA >::value &&!std::is_floating_point< TB >::value, int > Compare(const TA &a, const TB &b)
Compares two values.
Definition: primitive_types.h:113