Changeset 281 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/DeleteService.as
- Timestamp:
- 03/25/10 08:50:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/DeleteService.as
r224 r281 23 23 private var service:HttpClient; 24 24 25 private static var _instance:DeleteService = new DeleteService(); 26 25 27 public function DeleteService() { 28 if (_instance != null) { 29 throw new Error("DeleteService should only be accessed through DeleteService.instance"); 30 } 26 31 service = new HttpClient(); 27 32 service.listener.onComplete = handleResult; … … 29 34 } 30 35 31 private function getCredentials():String {32 return Base64.encode("tomcat:tomcat");33 }36 // private function getCredentials():String { 37 // return Base64.encode("tomcat:tomcat"); 38 // } 34 39 35 40 public function deleteItem(item:ItemDescription):void { 36 41 CursorManager.setBusyCursor(); 37 var uri:URI = new URI(item.dataUrl); 42 var uri:URI = new URI(item.dataUrl);//+";JSESSIONID="+Config.instance.sessionId 38 43 var httpDelete:Delete = new Delete(); 39 httpDelete.addHeader("Authorization", "BASIC " + getCredentials());44 // httpDelete.addHeader("Authorization", "BASIC " + getCredentials()); 40 45 service.request(uri, httpDelete); 41 46 } … … 58 63 } 59 64 65 public static function get instance():DeleteService { 66 return _instance; 67 } 60 68 } 61 69 }
Note: See TracChangeset
for help on using the changeset viewer.