com.jn.agileway.spring.web.mvc.requestmapping.PutMappingAnnotationAccessor Maven / Gradle / Ivy
package com.jn.agileway.spring.web.mvc.requestmapping;
import com.jn.agileway.http.rr.requestmapping.RequestMappingAccessor;
import com.jn.langx.util.collection.Collects;
import com.jn.langx.util.net.http.HttpMethod;
import org.springframework.web.bind.annotation.PutMapping;
import java.util.List;
public class PutMappingAnnotationAccessor implements RequestMappingAccessor {
private PutMapping mapping;
@Override
public PutMapping getMapping() {
return mapping;
}
@Override
public void setMapping(PutMapping mapping) {
this.mapping = mapping;
}
@Override
public String name() {
return mapping.name();
}
@Override
public List values() {
return Collects.newArrayList(mapping.value());
}
@Override
public List paths() {
return Collects.newArrayList(mapping.path());
}
@Override
public List methods() {
return Collects.newArrayList(HttpMethod.PUT);
}
@Override
public List params() {
return Collects.newArrayList(mapping.params());
}
@Override
public List headers() {
return Collects.newArrayList(mapping.headers());
}
@Override
public List consumes() {
return Collects.newArrayList(mapping.consumes());
}
@Override
public List produces() {
return Collects.newArrayList(mapping.produces());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy