1 package net
.aramzamzam
.commons
.pagesbehavoir
.services
;
3 import java
.io
.Serializable
;
6 import org
.apache
.tapestry5
.Link
;
8 public class HttpStatusCode
implements Serializable
{
9 private static final long serialVersionUID
= 7324260894398442878L;
11 private final int statusCode
;
12 private final String location
;
14 public HttpStatusCode(int statusCode
) {
15 this.statusCode
= statusCode
;
19 public HttpStatusCode(int statusCode
, String location
) {
20 this.statusCode
= statusCode
;
21 this.location
= location
;
24 public HttpStatusCode(int statusCode
, Link link
) {
25 this(statusCode
, link
.toRedirectURI());
28 public HttpStatusCode(int statusCode
, URL url
) {
29 this(statusCode
, url
.toExternalForm());
32 public int getStatusCode() {
36 public String
getLocation() {