Permalink
Browse files

Remove the legacy code

  • Loading branch information...
1 parent 9aaeef7 commit e421afd185188ea812c5fa0554c4db32eda8ff56 @wangzijian wangzijian committed Nov 19, 2012
Showing with 0 additions and 12,613 deletions.
  1. +0 −5 pom.xml
  2. +0 −1 src/main/java/com/snda/storage/core/UploadObjectRequest.java
  3. +0 −92 src/main/java/com/snda/storage/exceptions/CSServiceException.java
  4. +0 −355 src/main/java/com/snda/storage/exceptions/ServiceException.java
  5. +0 −225 src/main/java/com/snda/storage/security/EncryptionUtil.java
  6. +0 −303 src/main/java/com/snda/storage/security/ProviderCredentials.java
  7. +0 −105 src/main/java/com/snda/storage/security/SNDACredentials.java
  8. +0 −9 src/main/java/com/snda/storage/service/CSRequestAuthorizer.java
  9. +0 −1,218 src/main/java/com/snda/storage/service/CSService.java
  10. +0 −60 src/main/java/com/snda/storage/service/Constants.java
  11. +0 −106 src/main/java/com/snda/storage/service/MultipartUploadChunk.java
  12. +0 −86 src/main/java/com/snda/storage/service/StorageObjectsChunk.java
  13. +0 −652 src/main/java/com/snda/storage/service/StorageService.java
  14. +0 −81 src/main/java/com/snda/storage/service/impl/rest/SimpleHandler.java
  15. +0 −221 src/main/java/com/snda/storage/service/impl/rest/httpclient/HttpMethodReleaseInputStream.java
  16. +0 −31 src/main/java/com/snda/storage/service/impl/rest/httpclient/HttpResponseAndByteCount.java
  17. +0 −550 src/main/java/com/snda/storage/service/impl/rest/httpclient/RestCSService.java
  18. +0 −1,258 src/main/java/com/snda/storage/service/impl/rest/httpclient/RestStorageService.java
  19. +0 −375 src/main/java/com/snda/storage/service/io/BytesProgressWatcher.java
  20. +0 −19 src/main/java/com/snda/storage/service/io/InputStreamWrapper.java
  21. +0 −84 src/main/java/com/snda/storage/service/io/InterruptableInputStream.java
  22. +0 −97 src/main/java/com/snda/storage/service/io/ProgressMonitoredInputStream.java
  23. +0 −123 src/main/java/com/snda/storage/service/io/RepeatableFileInputStream.java
  24. +0 −97 src/main/java/com/snda/storage/service/io/SegmentedRepeatableFileInputStream.java
  25. +0 −16 src/main/java/com/snda/storage/service/io/UnrecoverableIOException.java
  26. +0 −143 src/main/java/com/snda/storage/service/model/BaseStorageItem.java
  27. +0 −90 src/main/java/com/snda/storage/service/model/CSBucket.java
  28. +0 −200 src/main/java/com/snda/storage/service/model/CSObject.java
  29. +0 −19 src/main/java/com/snda/storage/service/model/CSOwner.java
  30. +0 −50 src/main/java/com/snda/storage/service/model/CreateBucketConfiguration.java
  31. +0 −59 src/main/java/com/snda/storage/service/model/MultipartCompleted.java
  32. +0 −105 src/main/java/com/snda/storage/service/model/MultipartPart.java
  33. +0 −106 src/main/java/com/snda/storage/service/model/MultipartUpload.java
  34. +0 −50 src/main/java/com/snda/storage/service/model/StorageBucket.java
  35. +0 −596 src/main/java/com/snda/storage/service/model/StorageObject.java
  36. +0 −46 src/main/java/com/snda/storage/service/model/StorageOwner.java
  37. +0 −21 src/main/java/com/snda/storage/service/multi/CancelEventTrigger.java
  38. +0 −61 src/main/java/com/snda/storage/service/multi/StorageServiceEventAdaptor.java
  39. +0 −11 src/main/java/com/snda/storage/service/multi/StorageServiceEventListener.java
  40. +0 −54 src/main/java/com/snda/storage/service/multi/ThreadWatcher.java
  41. +0 −486 src/main/java/com/snda/storage/service/multi/ThreadedStorageService.java
  42. +0 −39 src/main/java/com/snda/storage/service/multi/cs/CSServiceEventAdaptor.java
  43. +0 −18 src/main/java/com/snda/storage/service/multi/cs/CSServiceEventListener.java
  44. +0 −109 src/main/java/com/snda/storage/service/multi/cs/MultipartCompletesEvent.java
  45. +0 −112 src/main/java/com/snda/storage/service/multi/cs/MultipartStartsEvent.java
  46. +0 −54 src/main/java/com/snda/storage/service/multi/cs/MultipartUploadAndParts.java
  47. +0 −111 src/main/java/com/snda/storage/service/multi/cs/MultipartUploadsEvent.java
  48. +0 −411 src/main/java/com/snda/storage/service/multi/cs/ThreadedCSService.java
  49. +0 −144 src/main/java/com/snda/storage/service/multi/event/ServiceEvent.java
  50. +0 −34 src/main/java/com/snda/storage/service/utils/DefaultXmlHandler.java
  51. +0 −196 src/main/java/com/snda/storage/service/utils/Mimetypes.java
  52. +0 −242 src/main/java/com/snda/storage/service/utils/MultipartUtils.java
  53. +0 −243 src/main/java/com/snda/storage/service/utils/RestUtils.java
  54. +0 −647 src/main/java/com/snda/storage/service/utils/ServiceUtils.java
  55. +0 −1,001 src/main/java/com/snda/storage/service/utils/XmlResponsesSaxParser.java
  56. +0 −61 src/test/java/com/snda/storage/security/EncryptionUtilTest.java
  57. +0 −85 src/test/java/com/snda/storage/security/SNDACredentialsTest.java
  58. +0 −57 src/test/java/com/snda/storage/service/impl/rest/httpclient/RestCSServiceTest.java
  59. +0 −128 src/test/java/com/snda/storage/service/impl/rest/httpclient/RestStorageServiceTest.java
  60. +0 −45 src/test/java/com/snda/storage/service/model/CSBucketTest.java
  61. +0 −48 src/test/java/com/snda/storage/service/model/CSObjectTest.java
  62. +0 −115 src/test/java/com/snda/storage/service/model/StorageBucketTest.java
  63. +0 −181 src/test/java/com/snda/storage/service/model/StorageObjectTest.java
  64. +0 −29 src/test/java/com/snda/storage/service/utils/MimetypesTest.java
  65. +0 −66 src/test/java/com/snda/storage/service/utils/RestUtilsTest.java
  66. +0 −128 src/test/java/com/snda/storage/service/utils/ServiceUtilsTest.java
  67. +0 −43 src/test/java/com/snda/storage/service/utils/XmlResponsesSaxParserTest.java
View
@@ -125,11 +125,6 @@
<version>${logback.version}</version>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>com.jamesmurty.utils</groupId>
- <artifactId>java-xmlbuilder</artifactId>
- <version>0.4</version>
- </dependency>
</dependencies>
@@ -4,7 +4,6 @@
import com.snda.storage.Entity;
import com.snda.storage.core.support.FileEntity;
-import com.snda.storage.service.utils.Mimetypes;
/**
*
@@ -1,92 +0,0 @@
-package com.snda.storage.exceptions;
-
-
-/**
- * Exception for use by <code>CSService</code>s and related utilities.
- * This exception can hold useful additional information about errors that occur
- * when communicating with Cloud Storage.
- *
- */
-@Deprecated
-public class CSServiceException extends ServiceException {
-
- private static final long serialVersionUID = 1L;
-
- public CSServiceException() {
- super();
- }
-
- public CSServiceException(String message, String xmlMessage, Throwable cause) {
- super(message, xmlMessage, cause);
- }
-
- /**
- * Constructor that includes the XML error document returned by Cloud Storage.
- * @param message
- * @param xmlMessage
- */
- public CSServiceException(String message, String xmlMessage) {
- super(message, xmlMessage);
- }
-
- public CSServiceException(String message, Throwable cause) {
- super(message, cause);
- }
-
- public CSServiceException(String message) {
- super(message);
- }
-
- public CSServiceException(Throwable cause) {
- super(cause);
- }
-
- /**
- * Wrap a ServiceException as an CSServiceException.
- * @param exception
- */
- public CSServiceException(ServiceException exception) {
- super(exception.getMessage(), exception.getXmlMessage(), exception.getCause());
-
- this.setResponseHeaders(exception.getResponseHeaders());
- this.setResponseCode(exception.getResponseCode());
- this.setResponseStatus(exception.getResponseStatus());
- this.setResponseDate(exception.getResponseDate());
- this.setRequestVerb(exception.getRequestVerb());
- this.setRequestPath(exception.getRequestPath());
- this.setRequestHost(exception.getRequestHost());
- }
-
- /**
- * @return The service-specific Error Code returned by Cloud Storage, if an Cloud Storage response is available.
- * For example "AccessDenied", "InternalError"
- * Null otherwise.
- */
- public String getCSErrorCode() {
- return this.getErrorCode();
- }
-
- /**
- * @return The service-specific Error Message returned by Cloud Storage, if an Cloud Storage response is available.
- * For example: "Access Denied", "We encountered an internal error. Please try again."
- */
- public String getCSErrorMessage() {
- return this.getErrorMessage();
- }
-
- /**
- * @return The Error Request ID returned by Cloud Storage, if an Cloud Storage response is available.
- * Null otherwise.
- */
- public String getCSErrorRequestId() {
- return this.getErrorRequestId();
- }
-
- /**
- * @return The redirect endpoint returned by Cloud Storage, if a response is available.
- */
- public String getCSErrorEndpoint() {
- return this.getErrorEndpoint();
- }
-
-}
Oops, something went wrong.

0 comments on commit e421afd

Please sign in to comment.