|
ref_send API 1.16 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.NullPointerException
org.web_send.Failure
public class Failure
Indicates a failed HTTP request.
| Field Summary | |
|---|---|
java.lang.String |
phrase
HTTP reason phrase |
java.lang.String |
status
HTTP status code |
| Constructor Summary | |
|---|---|
Failure(java.lang.String status,
java.lang.String phrase)
Constructs an instance. |
|
| Method Summary | |
|---|---|
static Failure |
gone()
410 Gone |
static Failure |
notFound()
404 Not Found |
static Failure |
notSupported()
415 Unsupported Media Type |
static Failure |
tooBig()
413 Request Entity Too Large |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String status
public final java.lang.String phrase
| Constructor Detail |
|---|
public Failure(java.lang.String status,
java.lang.String phrase)
status - statusphrase - phrase| Method Detail |
|---|
public static Failure notFound()
public static Failure gone()
public static Failure tooBig()
public static Failure notSupported()
|
ref_send API 1.16 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2007 Waterken Inc. under the terms of the MIT X license.