GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  OBJECT::SIGNATURE::FILE (3)

.ds Aq ’

NAME

Object::Signature::File - Extended signature API for storing objects in file

CONTENTS

DESCRIPTION

Whereas the basic Object::Signature class provides for only a raw cryptographic signature, <B>Object::Signature::FileB> extends the signature method to add specialised information for objects that want some control over how they are stored as files.

For example, some objects may want the cached object to have a matching file extension (for example a gif image) so that web-accessible cache path could be used in a web page.

The image would then be sent out to the browser with the correct mime type.

METHODS

    signature_ext

The signature_ext method indicates the preferable file extension for the content of the object, if applicable.

If the method returns a string, it indicates the object should be stored in a file with a specific extension.

If the method returns a null string, it indicates that the file should be stored with no extension.

If the method return undef (the default value), it indicates no preference for the extention the file.

    signature_name

This <B>signature_nameB> method is the least-useful part of this extended API, and is rarely used. It is included mostly for completeness.

If the method returns a string, it indicates the name part of a file name that the object should be stored in, if possible.

If the method return a null string, it explicitly indicates there is no file name or a file name is not possible.

If the method returns undef (the default value), it indicates no preference for the name of the file.

AUTHOR

Adam Kennedy <adamk@cpan.org>

COPYRIGHT

Copyright 2004 - 2007 Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 OBJECT::SIGNATURE::FILE (3) 2011-03-24

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.