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

com.clouway.friendlyserve.RsRedirect Maven / Gradle / Ivy

There is a newer version: 0.1.5
Show newest version
package com.clouway.friendlyserve;

import java.net.HttpURLConnection;

/**
 * @author Miroslav Genov ([email protected])
 */
public class RsRedirect extends RsWrap {

  private final String redirectUrl;

  public RsRedirect(String redirectUrl) {
    super(new RsEmpty());
    this.redirectUrl = redirectUrl;
  }

  @Override
  public Status status() {
    return new Status(HttpURLConnection.HTTP_MOVED_TEMP, redirectUrl);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy