| 1 | package W3C::SOAP::WADL::Traits; | ||
| 2 | |||
| 3 | # Created on: 2013-04-21 10:52:17 | ||
| 4 | # Create by: Ivan Wills | ||
| 5 | # $Id$ | ||
| 6 | # $Revision$, $HeadURL$, $Date$ | ||
| 7 | # $Revision$, $Source$, $Date$ | ||
| 8 | |||
| 9 | 3 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | use version; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 3 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 3 | ▶ | use Data::Dumper qw/Dumper/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 3 | ▶ | use English qw/ -no_match_vars /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 3 | ▶ | use Moose::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 3 | our $VERSION = version->new('0.006'); | |
| 17 | |||
| 18 | 3 | Moose::Util::meta_attribute_alias('W3C::SOAP::WADL'); | |
| 19 | |||
| 20 | 3 | has style => ( | |
| 21 | is => 'rw', | ||
| 22 | isa => 'Str', | ||
| 23 | predicate => 'has_style', | ||
| 24 | ); | ||
| 25 | 3 | has real_name => ( | |
| 26 | is => 'rw', | ||
| 27 | isa => 'Str', | ||
| 28 | predicate => 'has_real_name', | ||
| 29 | ); | ||
| 30 | |||
| 31 | 3 | 1; | |
| 32 | |||
| 33 | __END__ | ||
| 34 | |||
| 35 | =head1 NAME | ||
| 36 | |||
| 37 | W3C::SOAP::WADL::Traits - Defines the extra attribute parameters for WADL | ||
| 38 | parameters. | ||
| 39 | |||
| 40 | =head1 VERSION | ||
| 41 | |||
| 42 | This documentation refers to W3C::SOAP::WADL::Traits version 0.006. | ||
| 43 | |||
| 44 | =head1 SYNOPSIS | ||
| 45 | |||
| 46 | use W3C::SOAP::WADL::Traits; | ||
| 47 | |||
| 48 | # create a wadl param attribute | ||
| 49 | has my_header => ( | ||
| 50 | is => 'rw', | ||
| 51 | isa => 'Str', | ||
| 52 | traits => [qw{ W3C::SOAP::WADL }], | ||
| 53 | style => 'header', | ||
| 54 | real_name => 'My-Header', | ||
| 55 | ); | ||
| 56 | |||
| 57 | # create a wadl param attribute | ||
| 58 | has my_query => ( | ||
| 59 | is => 'rw', | ||
| 60 | isa => 'Str', | ||
| 61 | traits => [qw{ W3C::SOAP::WADL }], | ||
| 62 | style => 'query', | ||
| 63 | real_name => 'My-Query', | ||
| 64 | ); | ||
| 65 | |||
| 66 | =head1 DESCRIPTION | ||
| 67 | |||
| 68 | Adds the extra information that L<W3C""SOAP::WADL::Client> needs for sending | ||
| 69 | a request. | ||
| 70 | |||
| 71 | =head1 ATTRIBUTES | ||
| 72 | |||
| 73 | =over 4 | ||
| 74 | |||
| 75 | =item style | ||
| 76 | |||
| 77 | The WADL parameter is either header or query parameter. | ||
| 78 | |||
| 79 | =item real_name | ||
| 80 | |||
| 81 | The value of the parameter as passed to or from the service. The may be different | ||
| 82 | as parameters my not match Perl's syntax | ||
| 83 | |||
| 84 | =back | ||
| 85 | |||
| 86 | =head1 DIAGNOSTICS | ||
| 87 | |||
| 88 | =head1 CONFIGURATION AND ENVIRONMENT | ||
| 89 | |||
| 90 | =head1 DEPENDENCIES | ||
| 91 | |||
| 92 | =head1 INCOMPATIBILITIES | ||
| 93 | |||
| 94 | =head1 BUGS AND LIMITATIONS | ||
| 95 | |||
| 96 | There are no known bugs in this module. | ||
| 97 | |||
| 98 | Please report problems to Ivan Wills (ivan.wills@gmail.com). | ||
| 99 | |||
| 100 | Patches are welcome. | ||
| 101 | |||
| 102 | =head1 AUTHOR | ||
| 103 | |||
| 104 | Ivan Wills - (ivan.wills@gmail.com) | ||
| 105 | |||
| 106 | =head1 LICENSE AND COPYRIGHT | ||
| 107 | |||
| 108 | Copyright (c) 2013 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). | ||
| 109 | All rights reserved. | ||
| 110 | |||
| 111 | This module is free software; you can redistribute it and/or modify it under | ||
| 112 | the same terms as Perl itself. See L<perlartistic>. This program is | ||
| 113 | distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
| 114 | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
| 115 | PARTICULAR PURPOSE. | ||
| 116 | |||
| 117 | =cut | ||