Package jadex.extension.rs.publish
Class AbstractRestPublishService.ResponseInfo
- java.lang.Object
-
- jadex.extension.rs.publish.AbstractRestPublishService.ResponseInfo
-
- Enclosing class:
- AbstractRestPublishService
public class AbstractRestPublishService.ResponseInfo extends java.lang.ObjectInfo struct for response.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringcallidprotected java.lang.Exceptionexceptionprotected booleanfinishedprotected java.lang.Integermaxprotected java.lang.reflect.Methodmethodprotected AbstractRestPublishService.MappingInfomiprotected jakarta.servlet.http.HttpServletRequestrequestprotected jakarta.servlet.http.HttpServletResponseresponseprotected java.lang.Objectresultprotected java.util.List<java.lang.String>resulttypesprotected booleansseprotected intstatus
-
Constructor Summary
Constructors Constructor Description ResponseInfo()Create a new response info.ResponseInfo(java.lang.Object result)Create a new response info.
-
Method Summary
-
-
-
Field Detail
-
result
protected java.lang.Object result
-
exception
protected java.lang.Exception exception
-
method
protected java.lang.reflect.Method method
-
status
protected int status
-
callid
protected java.lang.String callid
-
mi
protected AbstractRestPublishService.MappingInfo mi
-
request
protected jakarta.servlet.http.HttpServletRequest request
-
response
protected jakarta.servlet.http.HttpServletResponse response
-
finished
protected boolean finished
-
max
protected java.lang.Integer max
-
resulttypes
protected java.util.List<java.lang.String> resulttypes
-
sse
protected boolean sse
-
-
Method Detail
-
getResult
public java.lang.Object getResult()
- Returns:
- the result
-
setResult
public AbstractRestPublishService.ResponseInfo setResult(java.lang.Object result)
- Parameters:
result- the result to set
-
getException
public java.lang.Exception getException()
Get the exception.- Returns:
- the exception
-
setException
public AbstractRestPublishService.ResponseInfo setException(java.lang.Exception exception)
Set the exception.- Parameters:
exception- the exception to set
-
getStatus
public int getStatus()
- Returns:
- the status
-
setStatus
public AbstractRestPublishService.ResponseInfo setStatus(int status)
- Parameters:
status- the status to set
-
getCallid
public java.lang.String getCallid()
- Returns:
- the callid
-
setCallid
public AbstractRestPublishService.ResponseInfo setCallid(java.lang.String callid)
- Parameters:
callid- the callid to set
-
getMappingInfo
public AbstractRestPublishService.MappingInfo getMappingInfo()
- Returns:
- the mi
-
setMappingInfo
public AbstractRestPublishService.ResponseInfo setMappingInfo(AbstractRestPublishService.MappingInfo mi)
- Parameters:
mi- the mi to set
-
getRequest
public jakarta.servlet.http.HttpServletRequest getRequest()
- Returns:
- the request
-
setRequest
public AbstractRestPublishService.ResponseInfo setRequest(jakarta.servlet.http.HttpServletRequest request)
- Parameters:
request- the request to set
-
getResponse
public jakarta.servlet.http.HttpServletResponse getResponse()
- Returns:
- the response
-
setResponse
public AbstractRestPublishService.ResponseInfo setResponse(jakarta.servlet.http.HttpServletResponse response)
- Parameters:
response- the response to set
-
isFinished
public boolean isFinished()
- Returns:
- the finished
-
setFinished
public AbstractRestPublishService.ResponseInfo setFinished(boolean finished)
- Parameters:
finished- the finished to set
-
getMethod
public java.lang.reflect.Method getMethod()
- Returns:
- the method
-
setMethod
public AbstractRestPublishService.ResponseInfo setMethod(java.lang.reflect.Method method)
- Parameters:
method- the method to set
-
getMax
public java.lang.Integer getMax()
- Returns:
- the max
-
setMax
public AbstractRestPublishService.ResponseInfo setMax(java.lang.Integer max)
- Parameters:
max- the max to set
-
getResultTypes
public java.util.List<java.lang.String> getResultTypes()
- Returns:
- the resulttypes
-
setResultTypes
public AbstractRestPublishService.ResponseInfo setResultTypes(java.util.List<java.lang.String> resulttypes)
- Parameters:
resulttype- the resulttypes to set
-
isSSERequest
public boolean isSSERequest()
Check if it is a SSE request.- Returns:
- True, if is sse request.
-
isSSEConnectionAvailable
public boolean isSSEConnectionAvailable()
Check if sse connection is available.- Returns:
- True, if it is available.
-
-