All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jn.agileway.spring.web.mvc.requestmapping.PatchMappingAnnotationAccessor Maven / Gradle / Ivy

There is a newer version: 3.1.12
Show newest version
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.PatchMapping;

import java.util.List;

public class PatchMappingAnnotationAccessor implements RequestMappingAccessor {
    private PatchMapping mapping;

    @Override
    public PatchMapping getMapping() {
        return mapping;
    }

    @Override
    public void setMapping(PatchMapping 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.PATCH);
    }

    @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