1 | <?php |
||
35 | class EnterpriseBeanResourceIdentifier extends ResourceIdentifier |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * The key for the local business interface. |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | const LOCAL_INTERFACE = 'local'; |
||
44 | |||
45 | /** |
||
46 | * The key for the remote business interface. |
||
47 | * |
||
48 | * @var string |
||
49 | */ |
||
50 | const REMOTE_INTERFACE = 'remote'; |
||
51 | |||
52 | /** |
||
53 | * Identifier for property name 'contextName'. |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | const PROPERTY_CONTEXT_NAME = 'contextName'; |
||
58 | |||
59 | /** |
||
60 | * Identifier for property name 'className'. |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | const PROPERTY_CLASS_NAME = 'className'; |
||
65 | |||
66 | /** |
||
67 | * Identifier for property name 'interface'. |
||
68 | * |
||
69 | * @var string |
||
70 | */ |
||
71 | const PROPERTY_INTERFACE = 'interface'; |
||
72 | |||
73 | /** |
||
74 | * Identifier for property name 'indexFile'. |
||
75 | * |
||
76 | * @var string |
||
77 | */ |
||
78 | const PROPERTY_INDEX_FILE = 'indexFile'; |
||
79 | |||
80 | /** |
||
81 | * Identifier for property name 'transport'. |
||
82 | * |
||
83 | * @var string |
||
84 | */ |
||
85 | const PROPERTY_TRANSPORT = 'transport'; |
||
86 | |||
87 | /** |
||
88 | * The array with the members we want to parse from a URL. |
||
89 | * |
||
90 | * @var array |
||
91 | */ |
||
92 | protected $supportedMembers = array( |
||
93 | EnterpriseBeanResourceIdentifier::PROPERTY_CONTEXT_NAME, |
||
94 | EnterpriseBeanResourceIdentifier::PROPERTY_CLASS_NAME, |
||
95 | EnterpriseBeanResourceIdentifier::PROPERTY_INDEX_FILE, |
||
96 | EnterpriseBeanResourceIdentifier::PROPERTY_INTERFACE, |
||
97 | EnterpriseBeanResourceIdentifier::PROPERTY_TRANSPORT |
||
98 | ); |
||
99 | |||
100 | /** |
||
101 | * Returns the array with the supported members. |
||
102 | * |
||
103 | * @return array The array with the supported members |
||
104 | */ |
||
105 | protected function getSupportedMembers() |
||
109 | |||
110 | /** |
||
111 | * Sets the name of the index file. |
||
112 | * |
||
113 | * @param string $indexFile The name of the index file |
||
114 | * |
||
115 | * @return void |
||
116 | */ |
||
117 | public function setIndexFile($indexFile) |
||
121 | |||
122 | /** |
||
123 | * Returns the name of the index file. |
||
124 | * |
||
125 | * @return string|null The name of the index file |
||
126 | */ |
||
127 | 11 | public function getIndexFile() |
|
131 | |||
132 | /** |
||
133 | * Sets the context name. |
||
134 | * |
||
135 | * @param string $contextName The context name |
||
136 | * |
||
137 | * @return void |
||
138 | */ |
||
139 | public function setContextName($contextName) |
||
143 | |||
144 | /** |
||
145 | * Returns the context name. |
||
146 | * |
||
147 | * @return string|null The context name |
||
148 | */ |
||
149 | 11 | public function getContextName() |
|
153 | |||
154 | /** |
||
155 | * Sets the enterprise beans class name. |
||
156 | * |
||
157 | * @param string $className The enterprise bean class name |
||
158 | * |
||
159 | * @return void |
||
160 | */ |
||
161 | public function setClassName($className) |
||
165 | |||
166 | /** |
||
167 | * Returns the enterprise beans class name. |
||
168 | * |
||
169 | * @return string|null The enterprise bean class name |
||
170 | */ |
||
171 | 11 | public function getClassName() |
|
175 | |||
176 | /** |
||
177 | * Sets the name of the interface. |
||
178 | * |
||
179 | * @param string $interface The name of the interface |
||
180 | * |
||
181 | * @return void |
||
182 | */ |
||
183 | public function setInterface($interface) |
||
187 | |||
188 | /** |
||
189 | * Returns the name of the interface. |
||
190 | * |
||
191 | * @return string|null The name of the interface |
||
192 | */ |
||
193 | 11 | public function getInterface() |
|
197 | |||
198 | /** |
||
199 | * Queries whether the resource identifier requests a local interface or not. |
||
200 | * |
||
201 | * @return boolean TRUE if resource identifier requests a local interface |
||
202 | */ |
||
203 | public function isLocal() |
||
207 | |||
208 | /** |
||
209 | * Queries whether the resource identifier requests a remote interface or not. |
||
210 | * |
||
211 | * @return boolean TRUE if resource identifier requests a remote interface |
||
212 | */ |
||
213 | public function isRemote() |
||
217 | |||
218 | /** |
||
219 | * Sets the transport protocol for remote interface handling. |
||
220 | * |
||
221 | * @param string $transport The transport protocol for remote interface handling |
||
222 | * |
||
223 | * @return void |
||
224 | */ |
||
225 | public function setTransport($transport) |
||
229 | |||
230 | /** |
||
231 | * Returns the transport protocol for remote interface handling. |
||
232 | * |
||
233 | * @return string|null The transport protocol for remote interface handling |
||
234 | */ |
||
235 | 1 | public function getTransport() |
|
239 | |||
240 | /** |
||
241 | * create a new resource identifier with the URL parts from the passed properties. |
||
242 | * |
||
243 | * @param \AppserverIo\Properties\PropertiesInterface $properties The configuration properties |
||
244 | * |
||
245 | * @return \AppserverIo\Psr\Naming\EnterpriseBeanResourceIdentifier The initialized instance |
||
246 | */ |
||
247 | 11 | public static function createFromProperties(PropertiesInterface $properties) |
|
251 | } |
||
252 |