com.artipie.nuget.http.Absent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nuget-adapter Show documentation
Show all versions of nuget-adapter Show documentation
Turns your files/objects into NuGet artifacts
/*
* The MIT License (MIT) Copyright (c) 2020-2023 artipie.com
* https://github.com/artipie/artipie/blob/master/LICENSE.txt
*/
package com.artipie.nuget.http;
import com.artipie.asto.Content;
import com.artipie.http.Headers;
import com.artipie.http.ResponseBuilder;
import com.artipie.http.Response;
import java.util.concurrent.CompletableFuture;
/**
* Absent resource, sends HTTP 404 Not Found response to every request.
*/
public final class Absent implements Resource {
@Override
public CompletableFuture get(final Headers headers) {
return ResponseBuilder.notFound().completedFuture();
}
@Override
public CompletableFuture put(Headers headers, Content body) {
return ResponseBuilder.notFound().completedFuture();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy