Permalink
Browse files

Added config options to the remaining service providers.

  • Loading branch information...
1 parent 29747cc commit 61723a8a3b1642a3f18a20b1559ba21ba6511f92 Dima Berastau committed Jan 22, 2009
@@ -93,8 +93,7 @@ package org.restfulx.controllers {
* Adds a specific service provider instance to the array of
* available services
*
- * @param id service provider id
- * @return IServiceProvider instance that corresponds to the ID provided
+ * @param serviceProvider IServiceProvider instance to add
*/
public function addServiceProvider(serviceProvider:IServiceProvider):void {
services[serviceProvider.id] = serviceProvider;
@@ -41,8 +41,12 @@ package org.restfulx.services.as3http {
/** service id */
public static const ID:int = ServicesController.generateId();
- public function AS3GAEHTTPServiceProvider() {
- super();
+ /**
+ * @param httpRootUrl root URL that this service provider will prefix to all requests.
+ * By default this will be equal to Rx.httpRootUrl parameter
+ */
+ public function AS3GAEHTTPServiceProvider(httpRootUrl:String = null) {
+ super(httpRootUrl);
serializer = new GAEXMLSerializer;
urlSuffix = "xml";
}
@@ -35,8 +35,12 @@ package org.restfulx.services.as3http {
/** service id */
public static const ID:int = ServicesController.generateId();
- public function AS3JSONHTTPServiceProvider() {
- super();
+ /**
+ * @param httpRootUrl root URL that this service provider will prefix to all requests.
+ * By default this will be equal to Rx.httpRootUrl parameter
+ */
+ public function AS3JSONHTTPServiceProvider(httpRootUrl:String = null) {
+ super(httpRootUrl);
serializer = new JSONSerializer;
contentType = "application/json";
}
@@ -36,8 +36,12 @@ package org.restfulx.services.http {
/** service id */
public static const ID:int = ServicesController.generateId();
- public function GAEHTTPServiceProvider() {
- super();
+ /**
+ * @param httpRootUrl root URL that this service provider will prefix to all requests.
+ * By default this will be equal to Rx.httpRootUrl parameter
+ */
+ public function GAEHTTPServiceProvider(httpRootUrl:String = null) {
+ super(httpRootUrl);
serializer = new GAEXMLSerializer;
urlSuffix = "xml";
}

0 comments on commit 61723a8

Please sign in to comment.