/external/nist-sip/java/gov/nist/javax/sip/header/ |
ViaList.java | 36 * Keeps a list and a hashtable of via header functions. 45 public final class ViaList extends SIPHeaderList<Via> { 57 super(Via.class, ViaHeader.NAME);
|
Via.java | 43 * Via SIPHeader (these are strung together in a ViaList). 54 public class Via 67 /** The "received" parameter is added only for receiver-added Via Fields. 94 * JvB note: RFC3261 does not allow a comment to appear in Via headers, and this 103 public Via() { 181 /** port of the Via Header. 188 /** comment of the Via Header. 217 /** set the Host of the Via Header 384 + "Via, setTransport(), the transport parameter is null."); 413 + "Via, setProtocol(), the protocol parameter is null.") [all...] |
NameMap.java | 109 putNameMap(VIA, Via.class.getName()); //16
|
HeaderFactoryImpl.java | 70 * This splits up via headers into multiple lines for readability ( better for 1076 Via via = new Via(); local [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
ViaParser.java | 33 * Parser for via headers. 43 public ViaParser(String via) { 44 super(via); 52 * a parser for the essential part of the via header. 54 private void parseVia(Via v) throws ParseException { 98 if (name.equals(Via.BRANCH)) { 109 // JvB Note: RFC3261 does not allow a comment in Via headers anymore 163 if (name.getTokenValue().compareToIgnoreCase(Via.RECEIVED) == 0) { 202 // The first via header. 203 this.lexer.match(TokenTypes.VIA); [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
MessageProcessor.java | 32 import gov.nist.javax.sip.header.Via; 63 * My Sent by string ( which I use to set the outgoing via header) 159 * Get the Via header to assign for this message processor. The topmost via 162 * @return the ViaHeader to be used by the messages sent via this message processor. 164 public Via getViaHeader() { 166 Via via = new Via(); local 168 via.setSentBy(sentByHostPort) [all...] |
TCPMessageChannel.java | 53 * It starts a message parser in its own thread and talks to the message parser via a pipe. The 54 * message parser calls back via the parseError or processMessage functions that are defined as 237 * Send message to whoever is connected to us. Uses the topmost via address to send to. 257 // (could have replied via udp but received via tcp!). 368 || hdrClass.equals(CSeq.class) || hdrClass.equals(Via.class) 432 // first via header tells where the message is coming from. 436 Via v = (Via) viaList.getFirst(); 451 if (v.hasParameter(Via.RPORT [all...] |
TLSMessageChannel.java | 60 * starts a message parser in its own thread and talks to the message parser via a pipe. The 61 * message parser calls back via the parseError or processMessage functions that are defined as 249 * Send message to whoever is connected to us. Uses the topmost via address to send to. 260 // (could have replied via udp but received via tcp!). 348 || hdrClass.equals(CSeq.class) || hdrClass.equals(Via.class) 406 // first via header tells where the message is coming from. 411 Via v = (Via) viaList.getFirst(); 423 if (v.hasParameter(Via.RPORT [all...] |
UDPMessageChannel.java | 43 import gov.nist.javax.sip.header.Via; 84 * is handed off via a SIP stack request for further processing. This stack 410 + sipMessage.getCSeq() + "Via = " 415 // For a request first via header tells where the message 419 Via v = (Via) viaList.getFirst(); 432 boolean hasRPort = v.hasParameter(Via.RPORT); 436 v.setParameter(Via.RECEIVED, this.peerAddress 441 v.setParameter(Via.RPORT, Integer 454 this.peerProtocol = ((Via) viaList.getFirst()).getTransport() [all...] |
MessageChannel.java | 39 import gov.nist.javax.sip.header.Via; 152 * Get the host to assign for an outgoing Request via header. 157 * Get the port to assign for the via header of an outgoing message. 307 * Get the Via header for this transport. Note that this does not set a branch identifier. 309 * @return a via header for outgoing messages sent from this channel. 311 public Via getViaHeader() { 312 Via channelViaHeader; 314 channelViaHeader = new Via(); 324 * Get the via header host:port structure. This is extracted from the topmost via header o [all...] |
SIPTransaction.java | 35 import gov.nist.javax.sip.header.Via; 67 * Via header for a message. 376 // Branch value of topmost Via header 404 newBranch = ((Via) newOriginalRequest.getViaHeaders().getFirst()) 480 * Sets the Via header branch parameter used to identify this transaction. 703 * Returns the Via header for this channel. Gets the Via header of the 707 public Via getViaHeader() { 708 // Via header of the encapulated channel 709 Via channelViaHeader [all...] |
SIPClientTransaction.java | 40 import gov.nist.javax.sip.header.Via; 347 // List of Via headers in the message to test 351 String messageBranch = ((Via) viaHeaders.getFirst()).getBranch(); 363 ((Via) viaHeaders.getFirst()).getBranch()) 373 if (getBranch().equalsIgnoreCase(((Via) viaHeaders.getFirst()).getBranch())) { 409 // Set the branch id for the top via header. 410 Via topVia = (Via) transactionRequest.getViaHeaders().getFirst(); [all...] |
SIPServerTransaction.java | 36 import gov.nist.javax.sip.header.Via; 408 // The server transport uses the value of the top Via header field 429 Via via = transactionResponse.getTopmostVia(); local 430 String transport = via.getTransport(); 434 int port = via.getRPort(); 436 port = via.getPort(); 444 // Otherwise, if the Via header field value contains a 454 if (via.getMAddr() != null) { 455 host = via.getMAddr() [all...] |
SIPDialog.java | 57 import gov.nist.javax.sip.header.Via; 1926 Via via = lp.getViaHeader(); local 2044 Via via = ((SIPClientTransaction) clientTransactionId).getOutgoingViaHeader(); local 2459 Via via = this.lastResponse.getTopmostVia(); local [all...] |
SIPTransactionStack.java | 44 import gov.nist.javax.sip.header.Via; 910 Via via = sipMessage.getTopmostVia(); local 911 if (via.getBranch() != null) { 936 Via via = sipMessage.getTopmostVia(); local 937 if (via.getBranch() != null) { [all...] |
/external/nist-sip/java/gov/nist/javax/sip/ |
Utils.java | 31 import gov.nist.javax.sip.header.Via; 183 Via topmostVia = response.getTopmostVia();
|
ListeningPointImpl.java | 43 import gov.nist.javax.sip.header.Via; 217 public Via getViaHeader() {
|
SipProviderImpl.java | 35 import gov.nist.javax.sip.header.Via; 288 // Be kind and assign a via header for this provider if the user is 293 Via via = lp.getViaHeader(); local 294 request.setHeader(via); 304 * User decided to give us his own via header branch. Lets see if it 387 Via topmostVia = sipRequest.getTopmostVia(); 686 // Check if we have a valid via. 689 throw new SipException("Invalid SipRequest -- no via header!"); 693 * JvB: Via branch should already be OK, dont touch it here? Som 698 Via via = sipRequest.getTopmostVia(); local 744 Via via = sipResponse.getTopmostVia(); local [all...] |
/external/nist-sip/java/gov/nist/javax/sip/message/ |
SIPResponse.java | 47 import gov.nist.javax.sip.header.Via; 404 * Check the response structure. Must have from, to CSEQ and VIA 418 throw new ParseException(Via.NAME+ " Is missing ", 0); 620 * Sets the Via branch for CANCEL or ACK requests 622 * @param via 626 private final void setBranch( Via via, String method ) { 639 via.setBranch( branch ); 676 * @param via -- the Via header to assign to the reques [all...] |
ListMap.java | 67 headerListTable.put(Via.class, ViaList.class);
|
SIPMessage.java | 67 import gov.nist.javax.sip.header.Via; 413 // in the topmost Via header 816 * @return A string containing the concatenation of various portions of the From,To,Via and 821 * Ledgard of IPera for generating transactionIDs when no port is present in the via 830 Via topVia = null; 832 topVia = (Via) this.getViaHeaders().getFirst(); 1014 Via via = (Via) it.next(); local [all...] |
SIPRequest.java | 212 * the contact headers. (2) Request must have cseq, to and from and via headers. (3) Method in 242 throw new ParseException("No via header in request! ", 0); 763 * constructed by a client MUST have only a single Via header field value matching the top 764 * Via value in the request being cancelled. Using the same values for these header fields 864 // The ACK MUST contain a single Via header field, 865 // and this MUST be equal to the top Via header 988 Via via = (Via) (((ViaList) nextHeader).getFirst().clone()); local 1071 Via via = (Via) this.getViaHeaders().getFirst(); local 1082 Via via = (Via) this.getViaHeaders().getFirst(); local [all...] |
MessageFactoryImpl.java | 110 * @param via - 123 FromHeader from, ToHeader to, List via, 127 || cSeq == null || from == null || to == null || via == null 139 sipRequest.setVia(via); 167 * @param via - 180 List via, MaxForwardsHeader maxForwards, byte[] content, 183 || cSeq == null || from == null || to == null || via == null 197 sipRequest.setVia(via); 225 * @param via - 233 List via, MaxForwardsHeader maxForwards) throws ParseException [all...] |