Uses of Class
org.igniterealtime.jbosh.AbstractBody
-
Uses of AbstractBody in org.igniterealtime.jbosh
Subclasses of AbstractBody in org.igniterealtime.jboshModifier and TypeClassDescriptionfinal classImplementation of theAbstractBodyclass which allows for the definition of messages from individual elements of a body.(package private) final classImplementation of theAbstractBodyclass which allows for the definition of messages from pre-existing message content.Fields in org.igniterealtime.jbosh declared as AbstractBodyModifier and TypeFieldDescriptionprivate AbstractBodyApacheHTTPResponse.bodyThe response body which was received from the server ornullif that has not yet happened.private final AbstractBodyBOSHMessageEvent.bodyMessage which was sent or received.private final AbstractBodyHTTPExchange.requestRequest 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) AbstractBodyHTTPExchange.getRequest()Get the original request message.Methods in org.igniterealtime.jbosh with parameters of type AbstractBodyModifier and TypeMethodDescriptionprivate voidBOSHClient.blockUntilSendable(AbstractBody msg) Blocks until either the message provided becomes immediately sendable or until the session is terminated.private voidBOSHClient.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 BOSHMessageEventBOSHMessageEvent.createRequestSentEvent(BOSHClient source, AbstractBody body) Creates a new message event for clients sending events to the connection manager.(package private) static BOSHMessageEventBOSHMessageEvent.createResponseReceivedEvent(BOSHClient source, AbstractBody body) Creates a new message event for clients receiving new messages from the connection manager.private voidBOSHClient.fireRequestSent(AbstractBody request) Notifies all request listeners that the specified request is being sent.private voidBOSHClient.fireResponseReceived(AbstractBody response) Notifies all response listeners that the specified response has been received.(package private) static CMSessionParamsCMSessionParams.fromSessionInit(AbstractBody req, AbstractBody resp) private static StringCMSessionParams.getRequiredAttribute(AbstractBody body, BodyQName name) private TerminalBindingConditionBOSHClient.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 booleanBOSHClient.isImmediatelySendable(AbstractBody msg) Determines if the message specified is immediately sendable or if it needs to block until the session state changes.private static booleanBOSHClient.isPause(AbstractBody msg) Determines if the message body specified indicates a request to pause the session.private static booleanBOSHClient.isRecoverableBindingCondition(AbstractBody resp) Determines whether or not the response indicates a recoverable binding condition (as per XEP-0124 section 17).private static booleanBOSHClient.isTermination(AbstractBody msg) Determines if the message body specified indicates a termination of the session.private longBOSHClient.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 voidBOSHClient.processRequestAcknowledgements(AbstractBody req, AbstractBody resp) Check the response for request acknowledgements and take appropriate action.private voidBOSHClient.processResponseAcknowledgementData(AbstractBody req) Process the response in order to update the response acknowlegement data.private HTTPExchangeBOSHClient.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 aCallableinstance which can be used to send the request specified to the connection manager.HTTPSender.send(CMSessionParams params, AbstractBody body) Create aCallableinstance 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.privateBOSHMessageEvent(Object source, AbstractBody cBody) Creates a new message event instance.(package private)HTTPExchange(AbstractBody req) Create a new request/response pair object.