Class ResourceInfo
- java.lang.Object
- 
- jadex.extension.rs.publish.mapper.ResourceInfo
 
- 
 public class ResourceInfo extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description protected byte[]dataThe direct data as alternative to the path.protected java.util.Map<java.lang.String,java.lang.String>headersThe headers.protected java.lang.StringmediatypeThe media type.protected java.lang.StringpathThe resource file path.protected java.lang.IntegerstatusThe response http state.
 - 
Constructor SummaryConstructors Constructor Description ResourceInfo(byte[] data, java.lang.String mediatype)Create a new ResourceInfo.ResourceInfo(byte[] data, java.lang.String mediatype, java.lang.Integer status)Create a new ResourceInfo.ResourceInfo(java.lang.String path, java.lang.String mediatype)Create a new ResourceInfo.ResourceInfo(java.lang.String path, java.lang.String mediatype, java.lang.Integer status)Create a new ResourceInfo.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()Get the data.java.util.Map<java.lang.String,java.lang.String>getHeaders()Get the response headers (if any).java.lang.StringgetMediatype()Get the mediatype.java.lang.StringgetPath()Get the path.java.lang.IntegergetStatus()Get the state.voidsetData(byte[] data)Set the data.voidsetHeaders(java.util.Map<java.lang.String,java.lang.String> headers)Set the response headers.voidsetMediatype(java.lang.String mediatype)Set the mediatype.voidsetPath(java.lang.String path)Set the path.voidsetStatus(java.lang.Integer status)Set the state.
 
- 
- 
- 
Field Detail- 
pathprotected java.lang.String path The resource file path.
 - 
dataprotected byte[] data The direct data as alternative to the path.
 - 
mediatypeprotected java.lang.String mediatype The media type.
 - 
statusprotected java.lang.Integer status The response http state.
 - 
headersprotected java.util.Map<java.lang.String,java.lang.String> headers The headers.
 
- 
 - 
Constructor Detail- 
ResourceInfopublic ResourceInfo(java.lang.String path, java.lang.String mediatype)Create a new ResourceInfo.
 - 
ResourceInfopublic ResourceInfo(byte[] data, java.lang.String mediatype)Create a new ResourceInfo.
 - 
ResourceInfopublic ResourceInfo(java.lang.String path, java.lang.String mediatype, java.lang.Integer status)Create a new ResourceInfo.
 - 
ResourceInfopublic ResourceInfo(byte[] data, java.lang.String mediatype, java.lang.Integer status)Create a new ResourceInfo.
 
- 
 - 
Method Detail- 
getMediatypepublic java.lang.String getMediatype() Get the mediatype. return The mediatype.
 - 
setMediatypepublic void setMediatype(java.lang.String mediatype) Set the mediatype.- Parameters:
- mediatype- The mediatype to set.
 
 - 
getPathpublic java.lang.String getPath() Get the path. return The path.
 - 
setPathpublic void setPath(java.lang.String path) Set the path.- Parameters:
- path- The path to set.
 
 - 
getDatapublic byte[] getData() Get the data. return The data.
 - 
setDatapublic void setData(byte[] data) Set the data.- Parameters:
- data- The data to set.
 
 - 
getStatuspublic java.lang.Integer getStatus() Get the state.- Returns:
- The state.
 
 - 
setStatuspublic void setStatus(java.lang.Integer status) Set the state.- Parameters:
- state- The state to set.
 
 - 
getHeaderspublic java.util.Map<java.lang.String,java.lang.String> getHeaders() Get the response headers (if any).
 - 
setHeaderspublic void setHeaders(java.util.Map<java.lang.String,java.lang.String> headers) Set the response headers.
 
- 
 
-