ePages 7.19.0 - DE_EPAGES/Content/Servlet/ShortURL.pm

Package DE_EPAGES::Content::Servlet::ShortURL

Servlet to map domain names and short URLs to shop pages.

Functions

handleFalseUrlEncoding
logUserFault
new
viewError

handleFalseUrlEncoding

Handles the error "FalseUrlEncoding". This function sets the HTTP status 404 - "Not Found", displays an error message and logs a warning message containing QUERY_STRING and HTTP_REFERER.

Syntax
$Servlet->handleFalseUrlEncoding( $Url );
Input
$URL (string)
url

logUserFault

Logs a message using the log level "WARN" and log category 'USERFAULT::'.$Code

Syntax
$Servlet->logUserFault( $Code, $Message );
Input
$Code (string)
category code
$Message (string)
log message

new

Create a new servlet. Normally called by DE_EPAGES::WebInterface::API::ApplicationServer::run

Syntax
$Servlet = DE_EPAGES::Content::Servlet::ShortURL->new;
Return
$Servlet (object)
blessed object

viewError

This function sets the HTTP status 404 - "Domain Not Found" and shows an error message.

Syntax
$Servlet->viewError( $Message );
Input
$Message (string)
error message