Public Member Functions | Static Public Member Functions | Data Fields

URL Class Reference

#include <URL.h>

Inherits HdrHeapSDKHandle.

Collaboration diagram for URL:
Collaboration graph
[legend]

Public Member Functions

 URL ()
 ~URL ()
int valid () const
void create (HdrHeap *h)
void copy (const URL *url)
void copy_shallow (const URL *url)
void clear ()
void reset ()
void nuke_proxy_stuff ()
int print (char *buf, int bufsize, int *bufindex, int *dumpoffset)
int length_get ()
void clear_string_ref ()
char * string_get (Arena *arena, int *length=NULL)
char * string_get_ref (int *length=NULL)
char * string_get_buf (char *dstbuf, int dsbuf_size, int *length=NULL)
void hash_get (CryptoHash *md5)
void host_hash_get (CryptoHash *md5)
const char * scheme_get (int *length)
int scheme_get_wksidx ()
void scheme_set (const char *value, int length)
const char * user_get (int *length)
void user_set (const char *value, int length)
const char * password_get (int *length)
void password_set (const char *value, int length)
const char * host_get (int *length)
void host_set (const char *value, int length)
int port_get ()
int port_get_raw ()
void port_set (int port)
const char * path_get (int *length)
void path_set (const char *value, int length)
int type_get ()
void type_set (int type)
const char * params_get (int *length)
void params_set (const char *value, int length)
const char * query_get (int *length)
void query_set (const char *value, int length)
const char * fragment_get (int *length)
void fragment_set (const char *value, int length)
MIMEParseResult parse (const char **start, const char *end)
 Parser doesn't clear URL first, so if you parse over a non-clear URL, the resulting URL may contain some of the previous data.
MIMEParseResult parse (const char *str, int length)
 Parser doesn't clear URL first, so if you parse over a non-clear URL, the resulting URL may contain some of the previous data.
MIMEParseResult parse_no_path_component_breakdown (const char *str, int length)
 Parser doesn't clear URL first, so if you parse over a non-clear URL, the resulting URL may contain some of the previous data.

Static Public Member Functions

static char * unescapify (Arena *arena, const char *str, int length)

Data Fields

URLImplm_url_impl

Detailed Description

Definition at line 257 of file URL.h.


Constructor & Destructor Documentation

URL::URL (  )  [inline]

Definition at line 331 of file URL.h.

URL::~URL (  )  [inline]

Definition at line 340 of file URL.h.


Member Function Documentation

void URL::clear ( void   )  [inline]
void URL::clear_string_ref (  )  [inline]

Definition at line 453 of file URL.h.

References ink_assert, m_url_impl, url_clear_string_ref(), and valid().

void URL::copy ( const URL url  )  [inline]
void URL::copy_shallow ( const URL url  )  [inline]

Definition at line 382 of file URL.h.

References ink_assert, m_url_impl, and valid().

Referenced by HTTPHdr::copy_shallow().

void URL::create ( HdrHeap h  )  [inline]
const char * URL::fragment_get ( int *  length  )  [inline]

Definition at line 698 of file URL.h.

References ink_assert, URLImpl::m_len_fragment, URLImpl::m_ptr_fragment, m_url_impl, and valid().

Referenced by TSUrlHttpFragmentGet().

void URL::fragment_set ( const char *  value,
int  length 
) [inline]

Definition at line 709 of file URL.h.

References ink_assert, HdrHeapSDKHandle::m_heap, m_url_impl, url_fragment_set(), and valid().

Referenced by TSUrlHttpFragmentSet().

void URL::hash_get ( CryptoHash md5  )  [inline]
const char * URL::host_get ( int *  length  )  [inline]
void URL::host_hash_get ( CryptoHash md5  )  [inline]

Definition at line 483 of file URL.h.

References ink_assert, m_url_impl, url_host_MD5_get(), and valid().

void URL::host_set ( const char *  value,
int  length 
) [inline]
int URL::length_get (  )  [inline]

Definition at line 429 of file URL.h.

References ink_assert, m_url_impl, url_length_get(), and valid().

void URL::nuke_proxy_stuff (  )  [inline]

Definition at line 409 of file URL.h.

References ink_assert, m_url_impl, url_nuke_proxy_stuff(), and valid().

Referenced by HttpTransactHeaders::remove_host_name_from_url().

const char * URL::params_get ( int *  length  )  [inline]
void URL::params_set ( const char *  value,
int  length 
) [inline]

Definition at line 667 of file URL.h.

References ink_assert, HdrHeapSDKHandle::m_heap, m_url_impl, url_params_set(), and valid().

Referenced by TSUrlHttpParamsSet().

MIMEParseResult URL::parse ( const char *  str,
int  length 
) [inline]

Parser doesn't clear URL first, so if you parse over a non-clear URL, the resulting URL may contain some of the previous data.

Definition at line 733 of file URL.h.

References ink_assert, parse(), and valid().

MIMEParseResult URL::parse ( const char **  start,
const char *  end 
) [inline]
MIMEParseResult URL::parse_no_path_component_breakdown ( const char *  str,
int  length 
) [inline]

Parser doesn't clear URL first, so if you parse over a non-clear URL, the resulting URL may contain some of the previous data.

Definition at line 747 of file URL.h.

References ink_assert, HdrHeapSDKHandle::m_heap, m_url_impl, url_parse_no_path_component_breakdown(), and valid().

Referenced by remap_parse_config_bti().

const char * URL::password_get ( int *  length  )  [inline]

Definition at line 543 of file URL.h.

References ink_assert, URLImpl::m_len_password, URLImpl::m_ptr_password, m_url_impl, and valid().

Referenced by TSUrlPasswordGet().

void URL::password_set ( const char *  value,
int  length 
) [inline]

Definition at line 554 of file URL.h.

References ink_assert, HdrHeapSDKHandle::m_heap, m_url_impl, url_password_set(), and valid().

Referenced by TSUrlPasswordSet().

const char * URL::path_get ( int *  length  )  [inline]
void URL::path_set ( const char *  value,
int  length 
) [inline]

Definition at line 626 of file URL.h.

References ink_assert, HdrHeapSDKHandle::m_heap, m_url_impl, url_path_set(), and valid().

Referenced by TSUrlPathSet(), and url_rewrite_remap_request().

int URL::port_get (  )  [inline]
int URL::port_get_raw (  )  [inline]
void URL::port_set ( int  port  )  [inline]
int URL::print ( char *  buf,
int  bufsize,
int *  bufindex,
int *  dumpoffset 
) [inline]

Definition at line 419 of file URL.h.

References ink_assert, m_url_impl, url_print(), and valid().

Referenced by TSUrlPrint(), and HTTPHdr::url_print().

const char * URL::query_get ( int *  length  )  [inline]
void URL::query_set ( const char *  value,
int  length 
) [inline]

Definition at line 688 of file URL.h.

References ink_assert, HdrHeapSDKHandle::m_heap, m_url_impl, url_query_set(), and valid().

Referenced by TSUrlHttpQuerySet().

void URL::reset (  )  [inline]

Definition at line 400 of file URL.h.

References m_url_impl.

Referenced by HTTPHdr::reset().

const char * URL::scheme_get ( int *  length  )  [inline]
int URL::scheme_get_wksidx (  )  [inline]
void URL::scheme_set ( const char *  value,
int  length 
) [inline]
char * URL::string_get ( Arena arena,
int *  length = NULL 
) [inline]
char * URL::string_get_buf ( char *  dstbuf,
int  dsbuf_size,
int *  length = NULL 
) [inline]

Definition at line 463 of file URL.h.

References ink_assert, m_url_impl, url_string_get_buf(), and valid().

Referenced by RemapProcessor::finish_remap(), and url_mapping::Print().

char * URL::string_get_ref ( int *  length = NULL  )  [inline]
int URL::type_get (  )  [inline]

Definition at line 636 of file URL.h.

References ink_assert, URLImpl::m_type_code, m_url_impl, and valid().

Referenced by TSUrlFtpTypeGet().

void URL::type_set ( int  type  )  [inline]

Definition at line 646 of file URL.h.

References ink_assert, m_url_impl, url_type_set(), and valid().

Referenced by TSUrlFtpTypeSet().

char * URL::unescapify ( Arena arena,
const char *  str,
int  length 
) [inline, static]

Definition at line 760 of file URL.h.

References url_unescapify().

const char * URL::user_get ( int *  length  )  [inline]

Definition at line 522 of file URL.h.

References ink_assert, URLImpl::m_len_user, URLImpl::m_ptr_user, m_url_impl, and valid().

Referenced by TSUrlUserGet().

void URL::user_set ( const char *  value,
int  length 
) [inline]

Definition at line 533 of file URL.h.

References ink_assert, HdrHeapSDKHandle::m_heap, m_url_impl, url_user_set(), and valid().

Referenced by TSUrlUserSet().

int URL::valid (  )  const [inline]

Field Documentation


The documentation for this class was generated from the following file: