1: <?php
2:
3: namespace PHPixie;
4:
5: class HTTPProcessors
6: {
7: protected $builder;
8:
9: public function __construct($http)
10: {
11: $this->builder = $this->buildBuilder($http);
12: }
13:
14: public function updateContext($settableConextContainer)
15: {
16: return $this->builder->updateContextProcessor($settableConextContainer);
17: }
18:
19: public function buildRequest()
20: {
21: return $this->builder->buildRequestProcessor();
22: }
23:
24: public function parseBody()
25: {
26: return $this->builder->parseBodyProcessor();
27: }
28:
29: public function attributeRegistryDispatcher($processorRegistry, $attributeName)
30: {
31: return $this->builder->attributeRegistryDispatcher(
32: $processorRegistry,
33: $attributeName
34: );
35: }
36:
37: public function builder()
38: {
39: return $this->builder;
40: }
41:
42: protected function buildBuilder($http)
43: {
44: return new HTTPProcessors\Builder($http);
45: }
46: }