Skip to content

Commit

Permalink
this corrects issue #28
Browse files Browse the repository at this point in the history
  • Loading branch information
LODYGENSKY Oleg committed Oct 12, 2017
1 parent 38df439 commit b70657c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/java/xtremweb/dispatcher/CommHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,15 @@ protected void sendApp(final XMLRPCCommand command)
dbc.exec(command);
}

/**
* This retrieves an object from server
*/
protected XMLable get(final XMLRPCCommand command)
throws IOException, InvalidKeyException, AccessControlException {
final DBCommandGet dbc = new DBCommandGet(DBInterface.getInstance());
return dbc.exec(command);
}

/**
* This retrieves an object from server
*/
Expand Down Expand Up @@ -1273,7 +1282,7 @@ public long uploadData(final XMLRPCCommand command)
UID uid = command.getURI().getUID();

try {
theData = (DataInterface)get((XMLRPCCommandGet)command);
theData = (DataInterface)get(command);
if (theData == null) {
throw new IOException("uploadData(" + uid + ") data not found");
}
Expand Down Expand Up @@ -1334,7 +1343,7 @@ public long downloadData(final XMLRPCCommand command)

mileStone("<downloadData>");
try {
theData = (DataInterface)get((XMLRPCCommandGet)command);
theData = (DataInterface)get(command);
if (theData == null) {
throw new IOException("downloadData(" + uid + ") data not found");
}
Expand Down

0 comments on commit b70657c

Please sign in to comment.