public class SomQmgrInboundMessage extends SomQmgrObject implements SomQmgrHandler
errortext, somSession
Constructor and Description |
---|
SomQmgrInboundMessage(SomSession session,
java.lang.String cName,
java.lang.String mName)
Create a new SOM Inbound message object
|
SomQmgrInboundMessage(SomSession session,
java.lang.String c,
java.lang.String m,
java.lang.String[] pairs)
Create a new SOM Inbound message object, initializing it from the data pairs
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildInfoString()
Build information string for this message
|
void |
handleBindResponse(int status,
java.lang.String detail)
Handle the response to a Bind operation
|
void |
handleResponse(SomCommand obj,
int status,
SomMessage msg)
Handles the response to commands which return a SomMessage object
(i.e.
|
void |
handleResponse(SomCommand command,
int status,
SomQmgrChannel object)
Handles the response to commands which return a list of channel objects
|
void |
handleResponse(SomCommand command,
int status,
SomQmgrMessage object)
Handles the response to commands which return a list of message objects
|
void |
handleResponse(SomCommand command,
int status,
SomQmgrMta object)
Handles the response to commands which return a list of MTA objects
|
void |
handleResponse(SomCommand command,
int status,
SomQmgrQueueManager object) |
void |
handleResponse(SomCommand command,
int status,
java.lang.String detail)
Handles the response to control commands which return an OK/error
response plus an info string
|
void |
handleResponse(SomCommand command,
int status,
java.lang.String[] pairs)
Handles the response to commands which return data about the current object -
i.e.
|
java.lang.Integer |
inboundSize()
Get size of inbound message
|
java.lang.String |
inMsgid()
Get message id for inbound message
|
java.lang.String |
mta()
Get MTA name for this inbound message
|
java.lang.Integer |
receivedBytes()
Get number of bytes of message received so far
|
void |
refresh(SomCommandListener listener)
Refresh the status of this inbound message
|
java.lang.Integer |
retransmissions()
Get number of retransmissions of the message
|
java.lang.String |
startTime()
Get time at which transfer started
|
addAttribute, addAttribute, addBindListener, clearAttributes, getBooleanAttributeValue, getDoubleAttributeValue, getIntegerAttributeValue, getSession, getStringAttributeValue, notifyBindListeners, notifyListener, notifyListeners, parsePairs, print_str, print, removeBindListener, setSkipNotifications
public SomQmgrInboundMessage(SomSession session, java.lang.String cName, java.lang.String mName)
session
- Session with which the object is associatedcName
- inbound channel name which must not be nullmName
- inbound MTA name which must not be nullpublic SomQmgrInboundMessage(SomSession session, java.lang.String c, java.lang.String m, java.lang.String[] pairs)
session
- Session with which the object is associatedc
- inbound channel name which must not be nullm
- inbound MTA name which must not be nullpairs
- attribute pairs from which to initialize objectpublic java.lang.String mta()
public java.lang.Integer inboundSize() throws SomException
SomException
- if attribute is not foundpublic java.lang.String inMsgid() throws SomException
SomException
- if attribute is not foundpublic java.lang.Integer receivedBytes() throws SomException
SomException
- if attribute is not foundpublic java.lang.Integer retransmissions() throws SomException
SomException
- if attribute is not foundpublic java.lang.String startTime() throws SomException
SomException
- if attribute is not foundpublic void handleResponse(SomCommand command, int status, java.lang.String detail)
SomQmgrHandler
handleResponse
in interface SomQmgrHandler
handleResponse
in interface SomHandler
command
- the SOM commandstatus
- operation statusdetail
- detail on errorpublic void handleResponse(SomCommand command, int status, SomQmgrQueueManager object)
public void handleResponse(SomCommand command, int status, SomQmgrChannel object)
SomQmgrHandler
handleResponse
in interface SomQmgrHandler
command
- the SOM commandstatus
- operation statusobject
- a channel objectpublic void handleResponse(SomCommand command, int status, SomQmgrMta object)
SomQmgrHandler
handleResponse
in interface SomQmgrHandler
command
- the SOM commandstatus
- operation statusobject
- a SOM Qmgr MTA objectpublic void handleResponse(SomCommand obj, int status, SomMessage msg)
SomQmgrHandler
handleResponse
in interface SomQmgrHandler
obj
- the SOM commandstatus
- operation statusmsg
- a message objectpublic void handleResponse(SomCommand command, int status, SomQmgrMessage object)
SomQmgrHandler
handleResponse
in interface SomQmgrHandler
command
- the SOM commandstatus
- operation statusobject
- a qmgr message objectpublic void handleBindResponse(int status, java.lang.String detail)
SomHandler
handleBindResponse
in interface SomHandler
status
- operation statusdetail
- error detail on failurepublic void handleResponse(SomCommand command, int status, java.lang.String[] pairs)
SomQmgrHandler
handleResponse
in interface SomQmgrHandler
command
- the SOM commandstatus
- operation statuspairs
- data pairspublic void refresh(SomCommandListener listener) throws SomException
listener
- Listener object to notify when complete which may be nullSomException
- on errorpublic java.lang.String buildInfoString()
Version: 18.0v6-0
Copyright (c) 2017-2020 Isode