fix wrong field name for the priority
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 10 Apr 2008 15:27:25 +0000 (15:27 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 10 Apr 2008 15:27:25 +0000 (15:27 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@695 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/util/fcp/ClientPut.java
src/net/pterodactylus/util/fcp/PersistentPut.java

index bfbe210..99a7947 100644 (file)
@@ -104,7 +104,7 @@ public class ClientPut extends FcpMessage {
         *            The priority of the request
         */
        public void setPriority(Priority priority) {
-               setField("Priority", String.valueOf(priority));
+               setField("PriorityClass", String.valueOf(priority));
        }
 
        /**
index 4c7eb36..40843b9 100644 (file)
@@ -107,7 +107,7 @@ public class PersistentPut extends BaseMessage {
         */
        public Priority getPriority() {
                try {
-                       return Priority.values()[Integer.valueOf(getField("Priority"))];
+                       return Priority.values()[Integer.valueOf(getField("PriorityClass"))];
                } catch (NumberFormatException nfe1) {
                        return Priority.unknown;
                }