1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 00:59:39 +02:00

Globally 's;stanza(/packet);stanza;'

This commit is contained in:
Florian Schmaus 2018-03-31 14:17:30 +02:00
parent 1d12be1644
commit ad87243060
171 changed files with 911 additions and 599 deletions

View file

@ -436,7 +436,7 @@ public class JingleManager implements JingleSessionListener {
}
/**
* Register the listenerJingles, waiting for a Jingle stanza(/packet) that tries to
* Register the listenerJingles, waiting for a Jingle stanza that tries to
* establish a new session.
*/
private void initJingleSessionRequestListeners() {
@ -490,7 +490,7 @@ public class JingleManager implements JingleSessionListener {
/**
* Activates the listenerJingles on a Jingle session request.
*
* @param initJin the stanza(/packet) that must be passed to the jingleSessionRequestListener.
* @param initJin the stanza that must be passed to the jingleSessionRequestListener.
*/
void triggerSessionRequested(Jingle initJin) {

View file

@ -202,7 +202,7 @@ public abstract class JingleNegotiator {
/**
* Dispatch an incoming packet.
*
* The negotiators form a tree relationship that roughly matches the Jingle stanza(/packet) format:
* The negotiators form a tree relationship that roughly matches the Jingle stanza format:
*
* JingleSession
* Content Negotiator
@ -220,15 +220,15 @@ public abstract class JingleNegotiator {
* <description>
* <transport>
*
* This way, each segment of a Jingle stanza(/packet) has a corresponding negotiator that know how to deal with that
* This way, each segment of a Jingle stanza has a corresponding negotiator that know how to deal with that
* part of the Jingle packet. It also allows us to support Jingle packets of arbitraty complexity.
*
* Each parent calls dispatchIncomingPacket for each of its children. The children then pass back a List of
* results that will get sent when we reach the top level negotiator (JingleSession).
*
* @param iq the stanza(/packet) received
* @param iq the stanza received
* @param id the ID of the response that will be sent
* @return the new stanza(/packet) to send (either a Jingle or an IQ error).
* @return the new stanza to send (either a Jingle or an IQ error).
* @throws XMPPException
* @throws InterruptedException
*/

View file

@ -271,14 +271,14 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
/**
* Process and respond to an incoming packet. This method is called
* from the stanza(/packet) listener dispatcher when a new stanza(/packet) has arrived. The
* method is responsible for recognizing the stanza(/packet) type and, depending on
* from the stanza listener dispatcher when a new stanza has arrived. The
* method is responsible for recognizing the stanza type and, depending on
* the current state, delivering it to the right event handler and wait for
* a response. The response will be another Jingle stanza(/packet) that will be sent
* a response. The response will be another Jingle stanza that will be sent
* to the other end point.
*
* @param iq
* the stanza(/packet) received
* the stanza received
* @throws XMPPException
* @throws SmackException
* @throws InterruptedException
@ -343,12 +343,12 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
/**
* Dispatch an incoming packet. The method is responsible for recognizing
* the stanza(/packet) type and, depending on the current state, delivering the
* stanza(/packet) to the right event handler and wait for a response.
* the stanza type and, depending on the current state, delivering the
* stanza to the right event handler and wait for a response.
*
* @param iq
* the stanza(/packet) received
* @return the new Jingle stanza(/packet) to send.
* the stanza received
* @return the new Jingle stanza to send.
* @throws XMPPException
* @throws SmackException
* @throws InterruptedException
@ -423,7 +423,7 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
* reponse, using the session information we have.
*
* @param jout
* the Jingle stanza(/packet) we want to complete and send
* the Jingle stanza we want to complete and send
* @throws NotConnectedException
* @throws InterruptedException
*/
@ -437,9 +437,9 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
* incoming packet.
*
* @param iq
* The Jingle stanza(/packet) we are responding to
* The Jingle stanza we are responding to
* @param jout
* the Jingle stanza(/packet) we want to complete and send
* the Jingle stanza we want to complete and send
* @throws NotConnectedException
* @throws InterruptedException
*/
@ -664,7 +664,7 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
}
/**
* Remove the stanza(/packet) listener used for processing packet.
* Remove the stanza listener used for processing packet.
*/
protected void removeAsyncPacketListener() {
if (packetListener != null) {
@ -675,8 +675,8 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
}
/**
* Install the stanza(/packet) listener. The listener is responsible for responding
* to any stanza(/packet) that we receive...
* Install the stanza listener. The listener is responsible for responding
* to any stanza that we receive...
*/
protected void updatePacketListener() {
removeAsyncPacketListener();
@ -1045,9 +1045,9 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
* incoming packet.
*
* @param iq
* The Jingle stanza(/packet) we are responding to
* The Jingle stanza we are responding to
* @param jingleError
* the IQ stanza(/packet) we want to complete and send
* the IQ stanza we want to complete and send
*/
public IQ createJingleError(IQ iq, JingleError jingleError) {
IQ errorPacket = null;
@ -1153,7 +1153,7 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
/**
* When we initiate a session we need to start a bunch of negotiators right after we receive the result
* stanza(/packet) for our session-initiate. This is where we start them.
* stanza for our session-initiate. This is where we start them.
*
*/
private void startNegotiators() {

View file

@ -30,7 +30,7 @@ import org.jxmpp.jid.Jid;
* A Jingle session request.
*
* This class is a facade of a received Jingle request. The user can have direct
* access to the Jingle stanza(/packet) (<i>JingleSessionRequest.getJingle() </i>) of
* access to the Jingle stanza (<i>JingleSessionRequest.getJingle() </i>) of
* the request or can use the convenience methods provided by this class.
*
* @author Alvaro Saurin
@ -78,7 +78,7 @@ public class JingleSessionRequest {
}
/**
* Returns the Jingle stanza(/packet) that was sent by the requester which contains
* Returns the Jingle stanza that was sent by the requester which contains
* the parameters of the session.
*/
public Jingle getJingle() {

View file

@ -96,12 +96,12 @@ public class MediaNegotiator extends JingleNegotiator {
/**
* Dispatch an incoming packet. The method is responsible for recognizing
* the stanza(/packet) type and, depending on the current state, delivering the
* stanza(/packet) to the right event handler and wait for a response.
* the stanza type and, depending on the current state, delivering the
* stanza to the right event handler and wait for a response.
*
* @param iq
* the stanza(/packet) received
* @return the new Jingle stanza(/packet) to send.
* the stanza received
* @return the new Jingle stanza to send.
* @throws XMPPException
* @throws NotConnectedException
* @throws InterruptedException

View file

@ -310,11 +310,11 @@ public class AudioChannel {
}
/**
* Get the best stanza(/packet) size for a given codec and a codec rate
* Get the best stanza size for a given codec and a codec rate
*
* @param codecFormat
* @param milliseconds
* @return the best stanza(/packet) size
* @return the best stanza size
* @throws IllegalArgumentException
*/
private int getPacketSize(Format codecFormat, int milliseconds) throws IllegalArgumentException {

View file

@ -27,9 +27,9 @@ public interface DatagramListener {
/**
* Called when a datagram is received. If the method returns false, the
* stanza(/packet) MUST NOT be resent from the received Channel.
* stanza MUST NOT be resent from the received Channel.
*
* @param datagramPacket the datagram stanza(/packet) received.
* @param datagramPacket the datagram stanza received.
* @return ?
*/
boolean datagramReceived(DatagramPacket datagramPacket);

View file

@ -72,17 +72,17 @@ public class RTPBridge extends IQ {
}
/**
* Element name of the stanza(/packet) extension.
* Element name of the stanza extension.
*/
public static final String NAME = "rtpbridge";
/**
* Element name of the stanza(/packet) extension.
* Element name of the stanza extension.
*/
public static final String ELEMENT_NAME = "rtpbridge";
/**
* Namespace of the stanza(/packet) extension.
* Namespace of the stanza extension.
*/
public static final String NAMESPACE = "http://www.jivesoftware.com/protocol/rtpbridge";
@ -322,7 +322,7 @@ public class RTPBridge extends IQ {
/**
* IQProvider for RTP Bridge packets.
* Parse receive RTPBridge stanza(/packet) to a RTPBridge instance
* Parse receive RTPBridge stanza to a RTPBridge instance
*
* @author Thiago Rocha
*/

View file

@ -55,17 +55,17 @@ public class STUN extends SimpleIQ {
private String publicIp = null;
/**
* Element name of the stanza(/packet) extension.
* Element name of the stanza extension.
*/
public static final String DOMAIN = "stun";
/**
* Element name of the stanza(/packet) extension.
* Element name of the stanza extension.
*/
public static final String ELEMENT_NAME = "query";
/**
* Namespace of the stanza(/packet) extension.
* Namespace of the stanza extension.
*/
public static final String NAMESPACE = "google:jingleinfo";
@ -109,7 +109,7 @@ public class STUN extends SimpleIQ {
/**
* IQProvider for RTP Bridge packets.
* Parse receive RTPBridge stanza(/packet) to a RTPBridge instance
* Parse receive RTPBridge stanza to a RTPBridge instance
*
* @author Thiago Rocha
*/

View file

@ -47,7 +47,7 @@ import org.jivesoftware.smackx.jingleold.packet.JingleTransport.JingleTransportC
* Transport negotiator.
*
* This class is responsible for managing the transport negotiation process,
* handling all the stanza(/packet) interchange and the stage control.
* handling all the stanza interchange and the stage control.
*
* @author Alvaro Saurin
*/
@ -551,7 +551,7 @@ public abstract class TransportNegotiator extends JingleNegotiator {
}
/**
* Create a Jingle stanza(/packet) where we announce our transport candidates.
* Create a Jingle stanza where we announce our transport candidates.
*
* @throws XMPPException
* @throws SmackException
@ -597,11 +597,11 @@ public abstract class TransportNegotiator extends JingleNegotiator {
/**
* Dispatch an incoming packet. The method is responsible for recognizing
* the stanza(/packet) type and, depending on the current state, delivering the
* stanza(/packet) to the right event handler and wait for a response.
* the stanza type and, depending on the current state, delivering the
* stanza to the right event handler and wait for a response.
*
* @param iq the stanza(/packet) received
* @return the new Jingle stanza(/packet) to send.
* @param iq the stanza received
* @return the new Jingle stanza to send.
* @throws XMPPException
* @throws SmackException
* @throws InterruptedException

View file

@ -182,7 +182,7 @@ public class Jingle extends IQ {
* Returns the XML element name of the extension sub-packet root element.
* Always returns "jingle"
*
* @return the XML element name of the stanza(/packet) extension.
* @return the XML element name of the stanza extension.
*/
public static String getElementName() {
return NODENAME;
@ -191,7 +191,7 @@ public class Jingle extends IQ {
/**
* Returns the XML namespace of the extension sub-packet root element.
*
* @return the XML namespace of the stanza(/packet) extension.
* @return the XML namespace of the stanza extension.
*/
public static String getNamespace() {
return NAMESPACE;
@ -326,7 +326,7 @@ public class Jingle extends IQ {
}
/**
* Get a hash key for the session this stanza(/packet) belongs to.
* Get a hash key for the session this stanza belongs to.
*
* @param sid The session id
* @param initiator The initiator