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

io.femo.http.handlers.auth.AbstractStrategy Maven / Gradle / Ivy

Go to download

An easy to use HTTP API, that supports synchronous and asynchronous execution of HTTP request. On android only asynchronous driver is supported. This library has been backported to jdk 7 to retain compatibility with android!

The newest version!
package io.femo.http.handlers.auth;

/**
 * Created by felix on 6/13/16.
 */
public abstract class AbstractStrategy implements Strategy {

    private String realm;

    protected AbstractStrategy(String realm) {
        this.realm = realm;
    }

    @Override
    public String realm() {
        return realm;
    }

    @Override
    public String authenticateHeader() {
        return  String.format("%s realm=%s", name(), realm());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy