Add “filterData” flag to getURI().
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / AllData.java
index ef427b1..dfc7dc2 100644 (file)
@@ -54,6 +54,7 @@ public class AllData extends BaseMessage implements Identifiable {
         *
         * @return The identifier of the request
         */
+       @Override
        public String getIdentifier() {
                return getField("Identifier");
        }
@@ -99,4 +100,13 @@ public class AllData extends BaseMessage implements Identifiable {
                return payloadInputStream;
        }
 
+       /**
+        * Returns the content type of the found file.
+        *
+        * @return The content type
+        */
+       public String getContentType() {
+               return getField("Metadata.ContentType");
+       }
+
 }