io.contek.invoker.hbdminverse.api.rest.user.UserRestRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of invoker-hbdminverse-api Show documentation
Show all versions of invoker-hbdminverse-api Show documentation
Huobi Derivative Inverse Java API
package io.contek.invoker.hbdminverse.api.rest.user;
import io.contek.invoker.commons.actor.IActor;
import io.contek.invoker.commons.rest.RestContext;
import io.contek.invoker.commons.rest.RestMethod;
import io.contek.invoker.hbdminverse.api.rest.RestRequest;
import io.contek.invoker.hbdminverse.api.rest.common.ResponseWrapper;
import javax.annotation.concurrent.NotThreadSafe;
import static com.google.common.base.Preconditions.checkArgument;
import static io.contek.invoker.commons.rest.RestMethod.POST;
@NotThreadSafe
abstract class UserRestRequest extends RestRequest {
UserRestRequest(IActor actor, RestContext context) {
super(actor, context);
checkArgument(!actor.getCredential().isAnonymous());
}
@Override
protected final RestMethod getMethod() {
return POST;
}
}