Package de.uplanet.lucy.server.scripting
Klasse ErrorResponseData
java.lang.Object
de.uplanet.lucy.server.scripting.ErrorResponseData
- Alle implementierten Schnittstellen:
de.uplanet.json.IJSONAppendableAware,de.uplanet.json.IJSONAware
public final class ErrorResponseData
extends Object
implements de.uplanet.json.IJSONAware, de.uplanet.json.IJSONAppendableAware
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungErrorResponseData(String p_strTitle, String p_strDescription, String p_strType, boolean p_bEmbedded, String p_strRedirectUrl, long p_lDelay) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGet the description of this error response.longGet the redirect delay of this error response.Get the redirect URL of this error response.getTitle()Get the title of this error response.getType()Get the type of this error response.booleanhasData()Same ashasTitle() || hasRedirectUrl().booleanCheck if this error response has a description.booleanCheck if this error response has a redirect delay.booleanCheck if this error response has a redirect URL.booleanhasTitle()Check if this error response has a title.booleanhasType()Check if this error response has a type.booleanSame as!booleanGet theshowEmbeddedflag of this error response.static ErrorResponseDatanoData()Create an empty error response object.voidsetDescription(String p_strDescription) Set the description of this error response.voidsetRedirectDelay(long p_lRedirectDelay) Set the redirect delay of this error response.voidsetRedirectUrl(String p_strRedirectUrl) Set the redirect URL of this error response.voidsetShowEmbedded(boolean p_bShowEmbedded) Set theshowEmbeddedflag of this error response.voidSet the title of this error response.voidSet the type of this error response.toJSON()<T extends Appendable>
TwriteJSON(T p_appendable) Write this object as a JSON object to the given character stream.Von Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.uplanet.json.IJSONAppendableAware
writeJSON
-
Konstruktordetails
-
ErrorResponseData
public ErrorResponseData() -
ErrorResponseData
@ConstructorProperties({"title","description","type","showEmbedded","redirectUrl","redirectDelay"}) public ErrorResponseData(String p_strTitle, String p_strDescription, String p_strType, boolean p_bEmbedded, String p_strRedirectUrl, long p_lDelay)
-
-
Methodendetails
-
noData
Create an empty error response object.- Gibt zurück:
- An empty error response object.
-
hasData
public boolean hasData()Same ashasTitle() || hasRedirectUrl(). -
hasTitle
public boolean hasTitle()Check if this error response has a title.- Gibt zurück:
trueif this error response has a title, orfalseotherwise.
-
getTitle
Get the title of this error response.- Gibt zurück:
- The title of this error response.
-
setTitle
Set the title of this error response.- Parameter:
p_strTitle- The title.
-
hasDescription
public boolean hasDescription()Check if this error response has a description.- Gibt zurück:
trueif this error response has a description, orfalseotherwise.
-
getDescription
Get the description of this error response.- Gibt zurück:
- The description of this error response.
-
setDescription
Set the description of this error response.- Parameter:
p_strDescription- The description.
-
hasType
public boolean hasType()Check if this error response has a type.- Gibt zurück:
trueif this error response has a type, orfalseotherwise.
-
getType
Get the type of this error response.- Gibt zurück:
- The type of this error response.
-
setType
Set the type of this error response.- Parameter:
p_strType- The type.
-
isShowEmbedded
public boolean isShowEmbedded()Get theshowEmbeddedflag of this error response.- Gibt zurück:
- The
showEmbeddedflag of this error response.
-
setShowEmbedded
public void setShowEmbedded(boolean p_bShowEmbedded) Set theshowEmbeddedflag of this error response.- Parameter:
p_bShowEmbedded- TheshowEmbeddedflag.
-
isShowBare
public boolean isShowBare()Same as!isShowEmbedded(). -
hasRedirectUrl
public boolean hasRedirectUrl()Check if this error response has a redirect URL.- Gibt zurück:
trueif this error response has a redirect URL, orfalseotherwise.
-
getRedirectUrl
Get the redirect URL of this error response.- Gibt zurück:
- The redirect URL of this error response.
-
setRedirectUrl
Set the redirect URL of this error response.- Parameter:
p_strRedirectUrl- The redirect URL.
-
hasRedirectDelay
public boolean hasRedirectDelay()Check if this error response has a redirect delay.- Gibt zurück:
trueif this error response has a redirect delay, orfalseotherwise.
-
getRedirectDelay
public long getRedirectDelay()Get the redirect delay of this error response.- Gibt zurück:
- The redirect delay of this error response.
-
setRedirectDelay
public void setRedirectDelay(long p_lRedirectDelay) Set the redirect delay of this error response.- Parameter:
p_lRedirectDelay- The redirect delay.
-
writeJSON
Write this object as a JSON object to the given character stream.- Angegeben von:
writeJSONin Schnittstellede.uplanet.json.IJSONAppendableAware- Löst aus:
IOException- If an I/O error occurred while writing to the given output stream.
-
toJSON
- Angegeben von:
toJSONin Schnittstellede.uplanet.json.IJSONAware
-