![JAR search and dependency download from the Maven repository](/logo.png)
io.femo.http.handlers.auth.AbstractStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-jdk7 Show documentation
Show all versions of http-jdk7 Show documentation
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