A brief file description. More...
#include "UrlMapping.h"
#include "HttpTransact.h"
#include <pcre.h>
Go to the source code of this file.
Data Structures | |
class | UrlRewrite |
struct | UrlRewrite::RegexMapping |
struct | UrlRewrite::MappingsStore |
Defines | |
#define | URL_REMAP_FILTER_NONE 0x00000000 |
#define | URL_REMAP_FILTER_REFERER 0x00000001 |
#define | URL_REMAP_FILTER_REDIRECT_FMT 0x00010000 |
Enumerations | |
enum | mapping_type { FORWARD_MAP, REVERSE_MAP, PERMANENT_REDIRECT, TEMPORARY_REDIRECT, FORWARD_MAP_REFERER, FORWARD_MAP_WITH_RECV_PORT, NONE } |
used for redirection, mapping, and reverse mapping More... | |
Functions | |
void | url_rewrite_remap_request (const UrlMappingContainer &mapping_container, URL *request_url) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file UrlRewrite.h.
#define URL_REMAP_FILTER_NONE 0x00000000 |
Definition at line 36 of file UrlRewrite.h.
#define URL_REMAP_FILTER_REDIRECT_FMT 0x00010000 |
Definition at line 38 of file UrlRewrite.h.
Referenced by RemapProcessor::finish_remap().
#define URL_REMAP_FILTER_REFERER 0x00000001 |
Definition at line 37 of file UrlRewrite.h.
Referenced by RemapProcessor::finish_remap().
enum mapping_type |
used for redirection, mapping, and reverse mapping
FORWARD_MAP | |
REVERSE_MAP | |
PERMANENT_REDIRECT | |
TEMPORARY_REDIRECT | |
FORWARD_MAP_REFERER | |
FORWARD_MAP_WITH_RECV_PORT | |
NONE |
Definition at line 45 of file UrlRewrite.h.
void url_rewrite_remap_request | ( | const UrlMappingContainer & | mapping_container, | |
URL * | request_url | |||
) |
Definition at line 287 of file UrlRewrite.cc.
References Debug, UrlMappingContainer::getFromURL(), UrlMappingContainer::getMapping(), UrlMappingContainer::getToURL(), URL::host_get(), URL::host_set(), url_mapping::map_id, memcpy, URL::path_get(), URL::path_set(), URL::port_get_raw(), URL::port_set(), URL::scheme_get(), and URL::scheme_set().
Referenced by UrlRewrite::Remap_redirect(), UrlRewrite::ReverseMap(), and RemapPlugins::run_single_remap().