org.brutusin.demo.IdempotentUnSafeAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpc-demo Show documentation
Show all versions of rpc-demo Show documentation
Demo app for brutusin:rcp
The newest version!
package org.brutusin.demo;
import org.brutusin.rpc.http.UnsafeAction;
public class IdempotentUnSafeAction extends UnsafeAction {
@Override
public String execute(String s) throws Exception {
return "Received '"+s+"' in an idempotent unsafe action (only allows POST and PUT requests)";
}
@Override
public boolean isIdempotent() {
return true;
}
}