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

com.jn.langx.chain.Chain Maven / Gradle / Ivy

Go to download

Java lang extensions for java6+, a supplement to , replacement of a Guava, commons-lang. Core utilities, Collection utilities, IO utilities, Cache, Configuration library ...

There is a newer version: 4.8.2
Show newest version
package com.jn.langx.chain;


import com.jn.langx.annotation.NonNull;

public interface Chain {

    /**
     * Causes the next filter in the chain to be invoked, or if the calling filter is the last filter
     * in the chain, causes the resource at the end of the chain to be invoked.
     *
     * @param request  the request to pass along the chain.
     * @param response the response to pass along the chain.
     */
    void handle(REQ request, RESP response);


    void addHandler(@NonNull Handler handler);

    ChainContext getContext();

    void setContext(ChainContext context);
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy