Class ResourceInfo
java.lang.Object
jadex.publishservice.publish.mapper.ResourceInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResourceInfo
(byte[] data, String mediatype) Create a new ResourceInfo.ResourceInfo
(byte[] data, String mediatype, Integer status) Create a new ResourceInfo.ResourceInfo
(String path, String mediatype) Create a new ResourceInfo.ResourceInfo
(String path, String mediatype, Integer status) Create a new ResourceInfo. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
Get the data.Get the response headers (if any).Get the mediatype.getPath()
Get the path.Get the state.void
setData
(byte[] data) Set the data.void
setHeaders
(Map<String, String> headers) Set the response headers.void
setMediatype
(String mediatype) Set the mediatype.void
Set the path.void
Set the state.
-
Field Details
-
path
The resource file path. -
data
protected byte[] dataThe direct data as alternative to the path. -
mediatype
The media type. -
status
The response http state. -
headers
The headers.
-
-
Constructor Details
-
ResourceInfo
Create a new ResourceInfo. -
ResourceInfo
Create a new ResourceInfo. -
ResourceInfo
Create a new ResourceInfo. -
ResourceInfo
Create a new ResourceInfo.
-
-
Method Details
-
getMediatype
Get the mediatype. return The mediatype. -
setMediatype
Set the mediatype.- Parameters:
mediatype
- The mediatype to set.
-
getPath
Get the path. return The path. -
setPath
Set the path.- Parameters:
path
- The path to set.
-
getData
public byte[] getData()Get the data. return The data. -
setData
public void setData(byte[] data) Set the data.- Parameters:
data
- The data to set.
-
getStatus
Get the state.- Returns:
- The state.
-
setStatus
Set the state.- Parameters:
state
- The state to set.
-
getHeaders
Get the response headers (if any). -
setHeaders
Set the response headers.
-