Package de.elo.ix.client.plugin
Class PluginMessage
java.lang.Object
byps.BValueClass
de.elo.ix.client.plugin.PluginMessage
- All Implemented Interfaces:
Serializable
public class PluginMessage
extends byps.BValueClass
A message that can be sent to or received from a plugin.
- Since:
- 11.00.000.018
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionByte array parameters.protected longMessage ID.API object parameters.String parameters.protected PluginMessageSourceMessage source.protected intMessage response status code.protected Map<String,InputStream> Stream parameters.protected StringMessage URI.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED, flags -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the response as String.getBytes()Get memberbyteslonggetId()Get memberobjectsGet memberparametersintGet memberstreamsgetUri()Get memberurivoidSet the given string response.voidvoidsetId(long id) voidsetObjects(Map<String, byps.BValueClass> objects) voidsetParameters(Map<String, String> params) voidsetSource(PluginMessageSource soure) voidsetStatus(int status) voidsetStreams(Map<String, InputStream> streams) voidtoString()Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
source
Message source. Read only. -
id
protected long idMessage ID. -
uri
Message URI. -
parameters
String parameters. -
bytes
Byte array parameters. In case of a HTTP request or response, this element can contain the response data at map keyPluginMessageC.BODY. -
objects
API object parameters. E.g. Sord objects. In case of a HTTP request or response, this element is ignored. -
streams
Stream parameters. In case of a HTTP request or response, this element can contain the response data at map keyPluginMessageC.BODY. -
status
protected int statusMessage response status code. In case of a HTTP request, this element specifies the response status code. A value of 0 is implicitly mapped to 200.
-
-
Constructor Details
-
PluginMessage
public PluginMessage() -
PluginMessage
-
-
Method Details
-
getId
public long getId() -
getUri
Get memberuri- Returns:
- uri or empty string, not null.
-
getParameters
Get memberparameters- Returns:
- params or empty map, not null.
-
getBytes
Get memberbytes- Returns:
- bytes or empty map, not null.
-
getObjects
Get memberobjects- Returns:
- objects or empty map, not null.
-
getStreams
Get memberstreams- Returns:
- streams or empty map, not null.
-
setId
public void setId(long id) -
setUri
-
setParameters
-
setBytes
-
setObjects
-
setStreams
-
setBodyText
Set the given string response. Only available in Java. This function internally sets the given String as UTF-8 encoded byte array in the memberbytesunder keyPluginMessageC.BODY.- Parameters:
s- response text
-
getBodyText
Get the response as String. Only available in Java. Return the UTF-8 encoded String found inbytesfor keyPluginMessageC.BODY.- Returns:
- response text.
-
toString
-
getStatus
public int getStatus() -
setStatus
public void setStatus(int status) -
getSource
-
setSource
-