com.untzuntz.ustackserverapi.MethodDefinition Maven / Gradle / Ivy
package com.untzuntz.ustackserverapi;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.log4j.Logger;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.handler.codec.http.HttpMethod;
import org.jboss.netty.handler.codec.http.HttpRequest;
import com.untzuntz.ustack.aaa.UStackPermissionEnum;
import com.untzuntz.ustackserverapi.auth.AuthenticationInt;
import com.untzuntz.ustackserverapi.auth.AuthorizationInt;
import com.untzuntz.ustackserverapi.exceptions.BadRequestException;
import com.untzuntz.ustackserverapi.params.APICallParam;
import com.untzuntz.ustackserverapi.params.Validated;
import com.untzuntz.ustackserverapi.params.types.ParameterDefinitionInt;
import com.untzuntz.ustackserverapi.version.VersionInt;
@SuppressWarnings("rawtypes")
public class MethodDefinition {
static Logger logger = Logger.getLogger(MethodDefinition.class);
public static final int HASH_ENFORCEMENT_NONE = 0;
public static final int HASH_ENFORCEMENT_WARN = 1;
public static final int HASH_ENFORCEMENT_REJECT = 2;
public enum TokenCheckMode {
Warn,
Enforce;
}
private String path;
private boolean methodGET;
private boolean methodPOST;
private boolean methodPUT;
private boolean methodDELETE;
private boolean expectingFile;
private boolean disablePostParam = false;
private TokenCheckMode tokenMode;
private AuthenticationInt authMethod;
private Class apiClass;
private HashMap data;
private String methodName;
private String description;
private VersionInt sinceVersion;
private List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy