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-examples Show documentation
Show all versions of rpc-examples Show documentation
Examples of Brutusin-RPC component implementations
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;
}
}