Uses of Class
org.igniterealtime.jbosh.AbstractBody
-
Uses of AbstractBody in org.igniterealtime.jbosh
Subclasses of AbstractBody in org.igniterealtime.jboshModifier and TypeClassDescriptionfinal class
Implementation of theAbstractBody
class which allows for the definition of messages from individual elements of a body.(package private) final class
Implementation of theAbstractBody
class which allows for the definition of messages from pre-existing message content.Fields in org.igniterealtime.jbosh declared as AbstractBodyModifier and TypeFieldDescriptionprivate AbstractBody
ApacheHTTPResponse.body
The response body which was received from the server ornull
if that has not yet happened.private final AbstractBody
BOSHMessageEvent.body
Message which was sent or received.private final AbstractBody
HTTPExchange.request
Request body.Methods in org.igniterealtime.jbosh that return AbstractBodyModifier and TypeMethodDescriptionApacheHTTPResponse.getBody()
Wait for and then return the response body.BOSHMessageEvent.getBody()
Gets the message body which was sent or received.HTTPResponse.getBody()
Get the HTTP response message body.(package private) AbstractBody
HTTPExchange.getRequest()
Get the original request message.Methods in org.igniterealtime.jbosh with parameters of type AbstractBodyModifier and TypeMethodDescriptionprivate void
BOSHClient.blockUntilSendable
(AbstractBody msg) Blocks until either the message provided becomes immediately sendable or until the session is terminated.private void
BOSHClient.checkForTerminalBindingConditions
(AbstractBody body, int code) Checks to see if the response indicates a terminal binding condition (as per XEP-0124 section 17).(package private) static BOSHMessageEvent
BOSHMessageEvent.createRequestSentEvent
(BOSHClient source, AbstractBody body) Creates a new message event for clients sending events to the connection manager.(package private) static BOSHMessageEvent
BOSHMessageEvent.createResponseReceivedEvent
(BOSHClient source, AbstractBody body) Creates a new message event for clients receiving new messages from the connection manager.private void
BOSHClient.fireRequestSent
(AbstractBody request) Notifies all request listeners that the specified request is being sent.private void
BOSHClient.fireResponseReceived
(AbstractBody response) Notifies all response listeners that the specified response has been received.(package private) static CMSessionParams
CMSessionParams.fromSessionInit
(AbstractBody req, AbstractBody resp) private static String
CMSessionParams.getRequiredAttribute
(AbstractBody body, BodyQName name) private TerminalBindingCondition
BOSHClient.getTerminalBindingCondition
(int respCode, AbstractBody respBody) Evaluates the HTTP response code and response message and returns the terminal binding condition that it describes, if any.private boolean
BOSHClient.isImmediatelySendable
(AbstractBody msg) Determines if the message specified is immediately sendable or if it needs to block until the session state changes.private static boolean
BOSHClient.isPause
(AbstractBody msg) Determines if the message body specified indicates a request to pause the session.private static boolean
BOSHClient.isRecoverableBindingCondition
(AbstractBody resp) Determines whether or not the response indicates a recoverable binding condition (as per XEP-0124 section 17).private static boolean
BOSHClient.isTermination
(AbstractBody msg) Determines if the message body specified indicates a termination of the session.private long
BOSHClient.processPauseRequest
(AbstractBody req) Process the request to determine if the empty request delay can be determined by looking to see if the request is a pause request.private void
BOSHClient.processRequestAcknowledgements
(AbstractBody req, AbstractBody resp) Check the response for request acknowledgements and take appropriate action.private void
BOSHClient.processResponseAcknowledgementData
(AbstractBody req) Process the response in order to update the response acknowlegement data.private HTTPExchange
BOSHClient.processResponseAcknowledgementReport
(AbstractBody resp) Process the response in order to check for and respond to any potential ack reports.ApacheHTTPSender.send
(CMSessionParams params, AbstractBody body) Create aCallable
instance which can be used to send the request specified to the connection manager.HTTPSender.send
(CMSessionParams params, AbstractBody body) Create aCallable
instance which can be used to send the request specified to the connection manager.Constructors in org.igniterealtime.jbosh with parameters of type AbstractBodyModifierConstructorDescription(package private)
ApacheHTTPResponse
(org.apache.http.client.HttpClient client, BOSHClientConfig cfg, CMSessionParams params, AbstractBody request) Create and send a new request to the upstream connection manager, providing deferred access to the results to be returned.private
BOSHMessageEvent
(Object source, AbstractBody cBody) Creates a new message event instance.(package private)
HTTPExchange
(AbstractBody req) Create a new request/response pair object.