|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
org.jvoicexml.event.JVoiceXMLEvent
org.jvoicexml.event.ErrorEvent
org.jvoicexml.event.error.BadFetchError
org.jvoicexml.event.error.BadFetchProtocolResponsecodeError
public class BadFetchProtocolResponsecodeError
In the case of a fetch failure, the interpreter context must use a detailed event type telling which specific HTTP or other protocol-specific response code was encountered. The value of the response code for HTTP is defined in [RFC2616]. This allows applications to differentially treat a missing document from a prohibited document, for instance. The value of the response code for other protocols (such as HTTPS, RTSP, and so on) is dependent upon the protocol.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary |
|---|
| Fields inherited from class org.jvoicexml.event.error.BadFetchError |
|---|
EVENT_TYPE |
| Constructor Summary | |
|---|---|
BadFetchProtocolResponsecodeError(String usedProtocol,
int detectedResponseCode)
Constructs a new event with the event type as its detail message. |
|
BadFetchProtocolResponsecodeError(String usedProtocol,
int detectedResponseCode,
String message)
Constructs a new event with the specified detail message. the given detail message is expanded to the form <getEventType()>>: <message>. |
|
BadFetchProtocolResponsecodeError(String usedProtocol,
int detectedResponseCode,
String message,
Throwable cause)
Constructs a new event with the specified detail message and cause. |
|
BadFetchProtocolResponsecodeError(String usedProtocol,
int detectedResponseCode,
Throwable cause)
Constructs a new event with the specified cause and a detail message of (cause==null ? |
|
| Method Summary | |
|---|---|
protected void |
appendSpecificationDetails(StringBuilder str)
Appends the protocol and response code to the type. |
String |
getProtocol()
Retrieve the protocol. |
int |
getResponseCode()
Retrieve the protocol-specific response code. |
| Methods inherited from class org.jvoicexml.event.error.BadFetchError |
|---|
getEventType |
| Methods inherited from class org.jvoicexml.event.JVoiceXMLEvent |
|---|
getMessage |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BadFetchProtocolResponsecodeError(String usedProtocol,
int detectedResponseCode)
The usedProtocol and the detectedResponseCode
are used to construct the event type.
usedProtocol - The used protocol.detectedResponseCode - The protocol-specific response code.BadFetchError.getEventType()
public BadFetchProtocolResponsecodeError(String usedProtocol,
int detectedResponseCode,
String message)
<getEventType()>>: <message>.
The cause is not initialized.
The usedProtocol and the detectedResponseCode
are used to construct the event type.
usedProtocol - The used protocol.detectedResponseCode - The protocol-specific response code.message - The detail message.BadFetchError.getEventType()
public BadFetchProtocolResponsecodeError(String usedProtocol,
int detectedResponseCode,
Throwable cause)
(cause==null ? getEventType() : cause.toString()) (which
typically contains the class and detail message of cause).
The usedProtocol and the detectedResponseCode
are used to construct the event type.
usedProtocol - The used protocol.detectedResponseCode - The protocol-specific response code.cause - The cause.BadFetchError.getEventType()
public BadFetchProtocolResponsecodeError(String usedProtocol,
int detectedResponseCode,
String message,
Throwable cause)
The usedProtocol and the detectedResponseCode
are used to construct the event type.
usedProtocol - The used protocol.detectedResponseCode - The protocol-specific response code.message - The detail message.cause - The cause.BadFetchError.getEventType()| Method Detail |
|---|
public final String getProtocol()
public final int getResponseCode()
getProtocol()protected final void appendSpecificationDetails(StringBuilder str)
<BadFetchError.EVENT_TYPE>.<protocol>.<responseCode>
appendSpecificationDetails in class BadFetchErrorstr - type prefix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||