|
Revision 1831, 0.6 kB
(checked in by nahi, 2 years ago)
|
- rename SOAP::Filter::FilterBase? -> SOAP::Filter::Handler. The name is from SOAP::Header::Handler.
|
| Line | |
|---|
| 1 |
# SOAP4R - SOAP envelope filter base class. |
|---|
| 2 |
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>. |
|---|
| 3 |
|
|---|
| 4 |
# This program is copyrighted free software by NAKAMURA, Hiroshi. You can |
|---|
| 5 |
# redistribute it and/or modify it under the same terms of Ruby's license; |
|---|
| 6 |
# either the dual license version in 2003, or any later version. |
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
module SOAP |
|---|
| 10 |
module Filter |
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
class Handler |
|---|
| 14 |
|
|---|
| 15 |
# should return envelope. opt can be updated for other filters. |
|---|
| 16 |
def on_outbound(envelope, opt) |
|---|
| 17 |
# do something. |
|---|
| 18 |
envelope |
|---|
| 19 |
end |
|---|
| 20 |
|
|---|
| 21 |
# should return xml. opt can be updated for other filters. |
|---|
| 22 |
def on_inbound(xml, opt) |
|---|
| 23 |
# do something. |
|---|
| 24 |
xml |
|---|
| 25 |
end |
|---|
| 26 |
|
|---|
| 27 |
end |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
end |
|---|
| 31 |
end |
|---|