Package jadex.extension.rs.publish
Class AbstractRestPublishService.ResponseInfo
- java.lang.Object
-
- jadex.extension.rs.publish.AbstractRestPublishService.ResponseInfo
-
- Enclosing class:
- AbstractRestPublishService
public static class AbstractRestPublishService.ResponseInfo extends java.lang.Object
Info struct for response.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
callid
protected java.lang.Exception
exception
protected boolean
finished
protected java.lang.Integer
max
protected java.lang.reflect.Method
method
protected AbstractRestPublishService.MappingInfo
mi
protected jakarta.servlet.http.HttpServletRequest
request
protected jakarta.servlet.http.HttpServletResponse
response
protected java.lang.Object
result
protected java.util.List<java.lang.String>
resulttypes
protected boolean
sse
protected int
status
-
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.
-
-