Class FortResponse
- java.lang.Object
-
- org.apache.directory.fortress.core.model.FortResponse
-
public class FortResponse extends Object
This class is used to return response data from Fortress Rest server.This class is not thread safe.
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description FortResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getAuthorized()
<T extends FortEntity>
List<T>getEntities()
FortEntity
getEntity()
int
getErrorCode()
String
getErrorMessage()
int
getHttpStatus()
Session
getSession()
List<String>
getValues()
Set<String>
getValueSet()
void
setAuthorized(Boolean authorized)
<T extends FortEntity>
voidsetEntities(List<T> entities)
void
setEntity(FortEntity entity)
void
setErrorCode(int errorCode)
void
setErrorMessage(String errorMessage)
void
setHttpStatus(int httpStatus)
void
setSession(Session session)
void
setValues(List<String> values)
void
setValueSet(Set<String> valueSet)
-
-
-
Method Detail
-
getEntity
public FortEntity getEntity()
-
setEntity
public void setEntity(FortEntity entity)
-
getErrorMessage
public String getErrorMessage()
-
setErrorMessage
public void setErrorMessage(String errorMessage)
-
getErrorCode
public int getErrorCode()
-
getAuthorized
public Boolean getAuthorized()
-
setAuthorized
public void setAuthorized(Boolean authorized)
-
setErrorCode
public void setErrorCode(int errorCode)
-
getEntities
public <T extends FortEntity> List<T> getEntities()
-
setEntities
public <T extends FortEntity> void setEntities(List<T> entities)
-
getSession
public Session getSession()
-
setSession
public void setSession(Session session)
-
getHttpStatus
public int getHttpStatus()
-
setHttpStatus
public void setHttpStatus(int httpStatus)
-
-