bes  Updated for version 3.20.6
gateway::GatewayUtils Class Reference

utility class for the gateway remote request mechanism More...

#include <GatewayUtils.h>

Collaboration diagram for gateway::GatewayUtils:
Collaboration graph

Static Public Member Functions

static void Get_type_from_content_type (const std::string &ctype, std::string &type)
 
static void Get_type_from_disposition (const std::string &disp, std::string &type)
 
static void Get_type_from_url (const std::string &url, std::string &type)
 
static void Initialize ()
 

Static Public Attributes

static std::map< std::string, std::string > MimeList
 
static std::string NoProxyRegex
 
static int ProxyAuthType = 0
 
static std::string ProxyHost
 
static std::string ProxyPassword
 
static int ProxyPort = 0
 
static std::string ProxyProtocol
 
static std::string ProxyUser
 
static std::string ProxyUserPW
 
static bool useInternalCache = false
 

Detailed Description

utility class for the gateway remote request mechanism

Definition at line 42 of file GatewayUtils.h.

Member Function Documentation

◆ Get_type_from_disposition()

void GatewayUtils::Get_type_from_disposition ( const std::string &  disp,
std::string &  type 
)
static

Look for the type of handler that can read the filename found in the

  • disp. The string
  • disp (probably from a HTTP Content-Dispoition header) has the format:
filename[#|=]<value>[ <attribute name>[#|=]<value>]
Parameters
dispThe disposition string
typeThe type of the handler that can read this file or the empty string if the BES Catalog Utils cannot find a handler to read it.

Definition at line 304 of file GatewayUtils.cc.


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