Page Speed Optimization Libraries  1.11.33.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
net_instaweb::FileLoadMappingLiteral Class Reference

#include "file_load_mapping.h"

Inheritance diagram for net_instaweb::FileLoadMappingLiteral:
net_instaweb::FileLoadMapping

Public Member Functions

 FileLoadMappingLiteral (const GoogleString &url_prefix, const GoogleString &filename_prefix)
 
virtual bool Substitute (StringPiece url, GoogleString *filename) const
 

Detailed Description

A simple mapping from a prefix in url-space to a prefix in filesystem-space. For example, if we had: FileLoadMappingLiteral("http://example.com/foo/bar/", "/foobar/") that would mean http://example.com/foo/bar/baz would be found on the filesystem at /foobar/baz.

Member Function Documentation

virtual bool net_instaweb::FileLoadMappingLiteral::Substitute ( StringPiece  url,
GoogleString *  filename 
) const
virtual

If this mapping applies to this url, put the mapped path into filename and return true. Otherwise return false.

Implements net_instaweb::FileLoadMapping.


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