NAME

Solstice::Server::ModPerl::API - An interface to mod_perl that abstracts the differences in versions.

SYNOPSIS

  use Solstice::Server::ModPerl::API;

DESCRIPTION

An interface to mod_perl that abstracts the differences in versions.

Methods

new()
useApacheRequest()

Returns a boolean for whether Apache[2]::Request should be used in preference of CGI.

_setVersion($version)

Sets the version of mod_perl

version()

Gets the version of mod_perl.

setPostMax($post_max)

Sets the maximum post size.

getPostMax()

Gets the maximum post size.

is2()

Returns whether the version is 2.

is1()

Returns whether the version is 1.

_setRequest($r)

Sets the apache request object that is passed to the mod_perl handler.

request()

Gets the apache request object.

apacheRequest()

Gets the apache request object that is provided by libapreq.

mod_perl wrappers

sendfile()
uri()
args()
filename()
set_last_modified()
set_etag()
set_content_length()
set_content_disposition()
set_content_type()
content_type()
update_mtime()
meets_conditions()
method()
header_only()
header_in('header')
header_out()
status (return code)

Sets the statuscode of the response

const($constant_name)

Returns the equivalent Apache::Constant or Apache2::Const, depending on what version of mod_perl you're using.

mod_perl server wrappers

get_handlers('hook_name')

AUTHOR

Catalyst Group, <catalyst@u.washington.edu>

VERSION

$Revision$

COPYRIGHT

Copyright 1998-2007 Office of Learning Technologies, University of Washington

Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php

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.