IDeserializedRequestHandler.php 923 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * This file is part of amfPHP
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the license that is bundled
  8. * with this package in the file license.txt.
  9. */
  10. /**
  11. * interface for a class that can handle a deserialized request
  12. * @package Amfphp_Core_Common
  13. * @author Ariel Sommeria-klein
  14. */
  15. interface Amfphp_Core_Common_IDeserializedRequestHandler {
  16. /**
  17. * handle the deserialized request, usually by making a series of calls to a service. This should not handle exceptions, as this is done separately
  18. * @param mixed $deserializedRequest For Amf, this is an AmfPacket
  19. * @param Amfphp_Core_Common_ServiceRouter $serviceRouter the service router created and configured by the gateway
  20. * @return mixed the response object. For Amf, this is an AmfPacket
  21. */
  22. public function handleDeserializedRequest($deserializedRequest, Amfphp_Core_Common_ServiceRouter $serviceRouter);
  23. }
  24. ?>