com.clouway.friendlyserve.RsRedirect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fserve Show documentation
Show all versions of fserve Show documentation
Friendly Serving HTTP Library.
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);
}
}