com.bumptech.glide.load.model.Headers Java Examples
The following examples show how to use
com.bumptech.glide.load.model.Headers.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SingleSignOnUrl.java From nextcloud-notes with GNU General Public License v3.0 | 5 votes |
/** * Use this as {@link Headers} if you want to do a {@link Glide} request for an {@link SingleSignOnAccount} which is not set by {@link SingleAccountHelper} as current {@link SingleSignOnAccount}. * * @param ssoAccountName Account name from which host the request should be fired (needs to match {@link SingleSignOnAccount#name}) */ public SingleSignOnOriginHeader(@NonNull String ssoAccountName, Headers headers) { LazyHeaders.Builder builder = new LazyHeaders.Builder(); for (Map.Entry<String, String> entry : headers.getHeaders().entrySet()) { builder.addHeader(entry.getKey(), entry.getValue()); } builder.addHeader(X_HEADER_SSO_ACCOUNT_NAME, ssoAccountName).build(); this.headers = builder.build(); }
Example #2
Source File: ProgressableGlideUrl.java From ImageLoader with Apache License 2.0 | 4 votes |
public ProgressableGlideUrl(URL url, Headers headers) { super(url, headers); }
Example #3
Source File: ProgressableGlideUrl.java From ImageLoader with Apache License 2.0 | 4 votes |
public ProgressableGlideUrl(String url, Headers headers) { super(url, headers); }
Example #4
Source File: ProgressableGlideUrl.java From ImageLoader with Apache License 2.0 | 4 votes |
public ProgressableGlideUrl(URL url, Headers headers) { super(url, headers); }
Example #5
Source File: ProgressableGlideUrl.java From ImageLoader with Apache License 2.0 | 4 votes |
public ProgressableGlideUrl(String url, Headers headers) { super(url, headers); }
Example #6
Source File: GlideModule.java From glide-support with The Unlicense | 4 votes |
@Override protected Headers getHeaders(String model, int width, int height) { return HEADERS; }
Example #7
Source File: GlideModule.java From glide-support with The Unlicense | 4 votes |
@Override protected Headers getHeaders(String model, int width, int height, Options options) { return HEADERS; }
Example #8
Source File: SingleSignOnUrl.java From nextcloud-notes with GNU General Public License v3.0 | 4 votes |
public SingleSignOnUrl(@NonNull SingleSignOnAccount ssoAccount, @NonNull String url, @NonNull Headers headers) { this(ssoAccount.name, url, headers); }
Example #9
Source File: SingleSignOnUrl.java From nextcloud-notes with GNU General Public License v3.0 | 4 votes |
public SingleSignOnUrl(@NonNull SingleSignOnAccount ssoAccount, @NonNull URL url, @NonNull Headers headers) { this(ssoAccount.name, url, headers); }
Example #10
Source File: SingleSignOnUrl.java From nextcloud-notes with GNU General Public License v3.0 | 4 votes |
public SingleSignOnUrl(@NonNull String ssoAccountName, @NonNull String url, @NonNull Headers headers) { super(url, new SingleSignOnOriginHeader(ssoAccountName, headers)); }
Example #11
Source File: SingleSignOnUrl.java From nextcloud-notes with GNU General Public License v3.0 | 4 votes |
public SingleSignOnUrl(@NonNull String ssoAccountName, @NonNull URL url, @NonNull Headers headers) { super(url, new SingleSignOnOriginHeader(ssoAccountName, headers)); }
Example #12
Source File: BaseGlideUrlLoader.java From giffun with Apache License 2.0 | 2 votes |
/** * Get the headers for the given model and dimensions as a map of strings to sets of strings. * * @param model The model. * @param width The width in pixels of the view/target the image will be loaded into. * @param height The height in pixels of the view/target the image will be loaded into. * @return The Headers object containing the headers, or null if no headers should be added. */ protected Headers getHeaders(T model, int width, int height) { return Headers.DEFAULT; }