public abstract class AbstractResponseStatus extends Object implements IResponseStatus, Serializable
IResponseStatus
interface.
This class uses the Builder Pattern.
Implementors of the IResponseStatus
should extend this class and its Builder.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractResponseStatus.AbstractBuilder<B extends AbstractResponseStatus.AbstractBuilder<B,T>,T extends IResponseStatus>
Abstract Builder pattern with self-bounding generics for
IResponseStatus subtypes. |
Modifier | Constructor and Description |
---|---|
protected |
AbstractResponseStatus(AbstractResponseStatus.AbstractBuilder<?,?> builder) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getStatusCode()
Returns the status code of the response.
|
String |
getStatusMessage()
Returns the detailed status message of the response.
|
String |
getSubStatusCode()
Returns the secondary status code of the response.
|
int |
hashCode() |
boolean |
isFailure()
Returns
true if the authentication failed, returns false otherwise. |
String |
toString() |
protected StringBuilder |
toString(StringBuilder stringBuilder) |
static StringBuilder |
toString(StringBuilder stringBuilder,
IResponseStatus status) |
protected AbstractResponseStatus(@Nonnull AbstractResponseStatus.AbstractBuilder<?,?> builder)
@Nonnull public final String getStatusCode()
IResponseStatus
getStatusCode
in interface IResponseStatus
@Nullable public final String getStatusMessage()
IResponseStatus
getStatusMessage
in interface IResponseStatus
@Nullable public final String getSubStatusCode()
IResponseStatus
getSubStatusCode
in interface IResponseStatus
public final boolean isFailure()
IResponseStatus
true
if the authentication failed, returns false
otherwise.isFailure
in interface IResponseStatus
true
if the authentication failed, returns false
otherwise.protected StringBuilder toString(@Nonnull StringBuilder stringBuilder)
public static StringBuilder toString(@Nonnull StringBuilder stringBuilder, @Nonnull IResponseStatus status)
Copyright © 2020. All Rights Reserved.