Permalink
Browse files

clean up the code.

  • Loading branch information...
1 parent f88154a commit 1dc49050d39f5cca5f1e2cc1d48f72d937843a4a Albert Cheng committed Jan 3, 2013
@@ -96,6 +96,9 @@ public DefaultListOperation(String entityUri, GenericType<ListResult<T>> respons
return responseType;
}
+ /* (non-Javadoc)
+ * @see com.microsoft.windowsazure.services.media.implementation.entities.EntityOperationBase#processResponse(java.lang.Object)
+ */
@Override
public Object processResponse(Object rawResponse) throws ServiceException {
return rawResponse;
@@ -29,11 +29,18 @@
*
*/
public abstract class EntityOperationBase implements EntityOperation {
+
+ /** The uri builder. */
private final EntityUriBuilder uriBuilder;
+
+ /** The proxy data. */
private EntityProxyData proxyData;
/**
+ * Instantiates a new entity operation base.
*
+ * @param uri
+ * the uri
*/
protected EntityOperationBase(final String uri) {
this.uriBuilder = new EntityUriBuilder() {
@@ -44,6 +51,12 @@ public String getUri() {
};
}
+ /**
+ * Instantiates a new entity operation base.
+ *
+ * @param uriBuilder
+ * the uri builder
+ */
protected EntityOperationBase(EntityUriBuilder uriBuilder) {
this.uriBuilder = uriBuilder;
}
@@ -57,7 +70,7 @@ public void setProxyData(EntityProxyData proxyData) {
}
/**
- * Get the currently set proxy data
+ * Get the currently set proxy data.
*
* @return the proxy data
*/
@@ -89,19 +102,46 @@ public MediaType getAcceptType() {
return MediaType.APPLICATION_ATOM_XML_TYPE;
}
+ /* (non-Javadoc)
+ * @see com.microsoft.windowsazure.services.media.implementation.entities.EntityOperation#processResponse(java.lang.Object)
+ */
@Override
public Object processResponse(Object rawResponse) throws ServiceException {
return rawResponse;
}
+ /**
+ * The Interface EntityUriBuilder.
+ */
public interface EntityUriBuilder {
+
+ /**
+ * Gets the uri.
+ *
+ * @return the uri
+ */
String getUri();
}
+ /**
+ * The Class EntityIdUriBuilder.
+ */
public static class EntityIdUriBuilder implements EntityUriBuilder {
+
+ /** The entity type. */
private final String entityType;
+
+ /** The entity id. */
private final String entityId;
+ /**
+ * Instantiates a new entity id uri builder.
+ *
+ * @param entityName
+ * the entity name
+ * @param entityId
+ * the entity id
+ */
public EntityIdUriBuilder(String entityName, String entityId) {
super();
this.entityType = entityName;

0 comments on commit 1dc4905

Please sign in to comment.