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

src.samples.java.ex.AKI_Sample Maven / Gradle / Ivy

Go to download

An auxiliary findbugs.sourceforge.net plugin for java bug detectors that fall outside the narrow scope of detectors to be packaged with the product itself.

The newest version!
package ex;

import akka.http.javadsl.server.AllDirectives;
import akka.http.javadsl.server.PathMatchers;
import akka.http.javadsl.server.Route;

public class AKI_Sample extends AllDirectives {

    public void testExtraneousRoute() {
        Route r = route(
                path(PathMatchers.segment("upload").slash(PathMatchers.segment()), (token) -> route(upload(token))));
    }

    public void testExtraneousConcat() {
        Route r = concat(path(PathMatchers.segment("upload").slash(PathMatchers.segment()), (token) -> upload(token)));
    }

    private Route upload(String token) {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy