use of com.tvd12.ezyhttp.server.core.annotation.DoDelete in project ezyhttp by youngmonkeys.
the class RequestHandlerMethod method fetchResponseType.
protected String fetchResponseType() {
DoGet doGet = method.getAnnotation(DoGet.class);
if (doGet != null) {
return DoGetAnnotations.getResponseType(doGet);
}
DoPost doPost = method.getAnnotation(DoPost.class);
if (doPost != null) {
return DoPostAnnotations.getResponseType(doPost);
}
DoPut doPut = method.getAnnotation(DoPut.class);
if (doPut != null) {
return DoPutAnnotations.getResponseType(doPut);
}
DoDelete doDelete = method.getAnnotation(DoDelete.class);
return DoDeleteAnnotations.getResponseType(doDelete);
}
use of com.tvd12.ezyhttp.server.core.annotation.DoDelete in project ezyhttp by youngmonkeys.
the class RequestHandlerMethod method fetchRequestURIFragment.
protected String fetchRequestURIFragment() {
DoGet doGet = method.getAnnotation(DoGet.class);
if (doGet != null) {
return DoGetAnnotations.getURI(doGet);
}
DoPost doPost = method.getAnnotation(DoPost.class);
if (doPost != null) {
return DoPostAnnotations.getURI(doPost);
}
DoPut doPut = method.getAnnotation(DoPut.class);
if (doPut != null) {
return DoPutAnnotations.getURI(doPut);
}
DoDelete doDelete = method.getAnnotation(DoDelete.class);
return DoDeleteAnnotations.getURI(doDelete);
}