BESUtil Class Reference

#include <BESUtil.h>

List of all members.

Static Public Member Functions

MIME utility functions
These functions are used to create the MIME headers for a message from a server to a client.

NB: These functions actually write both the response status line and the header.

See also:
DODSFilter


static void set_mime_text (FILE *out)
 Generate an HTTP 1.0 response header for a text document.
static void set_mime_html (FILE *out)
static string www2id (const string &in, const string &escape="%", const string &except="")
static string unhexstring (string s)


Detailed Description

Definition at line 12 of file BESUtil.h.


Member Function Documentation

void BESUtil::set_mime_text ( FILE *  out  )  [static]

Generate an HTTP 1.0 response header for a text document.

Parameters:
out Write the MIME header to this FILE pointer.

Definition at line 16 of file BESUtil.cc.

References CRLF.

Referenced by BESTextInfo::add_data(), and BESBasicHttpTransmitter::send_text().

void BESUtil::set_mime_html ( FILE *  out  )  [static]

Definition at line 32 of file BESUtil.cc.

References CRLF.

Referenced by BESHTMLInfo::add_data(), and BESBasicHttpTransmitter::send_html().

string BESUtil::www2id ( const string &  in,
const string &  escape = "%",
const string &  except = "" 
) [static]

This functions are used to unescape hex characters from strings

Definition at line 122 of file BESUtil.cc.

References unhexstring().

Here is the call graph for this function:

string BESUtil::unhexstring ( string  s  )  [static]

Definition at line 110 of file BESUtil.cc.

Referenced by www2id().


The documentation for this class was generated from the following files:
Generated on Wed Aug 29 03:24:35 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.2