Example usage for com.google.common.net HttpHeaders REFRESH

List of usage examples for com.google.common.net HttpHeaders REFRESH

Introduction

In this page you can find the example usage for com.google.common.net HttpHeaders REFRESH.

Prototype

String REFRESH

To view the source code for com.google.common.net HttpHeaders REFRESH.

Click Source Link

Document

The HTTP Refresh header field name.

Usage

From source file:com.tinspx.util.net.RefreshRedirect.java

static @Nullable Refresh fromHeaders(Headers headers, BasicError.Listener listener) {
    String value = headers.last(HttpHeaders.REFRESH);
    if (!Strings.isNullOrEmpty(value)) {
        return fromHeader(value, listener);
    }//w  ww . j a va 2 s .  co  m
    return null;
}