Codota Logo
Hop.getTransport
Code IndexAdd Codota to your IDE (free)

How to use
getTransport
method
in
javax.sip.address.Hop

Best Java code snippets using javax.sip.address.Hop.getTransport (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.jitsi/jain-sip-ri-ossonly

public Hop resolveAddress(Hop inputAddress) {
  if  (inputAddress.getPort()  != -1)
    return inputAddress;
  else {
    return new HopImpl(inputAddress.getHost(),
        MessageProcessor.getDefaultPort(inputAddress.getTransport()),inputAddress.getTransport());
  }
}
origin: org.mobicents.servlet.sip/sip-servlets-impl

String transport = hop.getTransport();
if(transport==null) {
  transport = ListeningPoint.UDP;
origin: org.mobicents.servlet.sip/sip-servlets-impl

public Hop resolveAddress(Hop hop) {
  String hopHost = hop.getHost();
  int hopPort = hop.getPort();
  String hopTransport = hop.getTransport();	
origin: org.mobicents.servlet.sip/sip-servlets-impl

/**
 * 
 * @param hop
 * @param request    
 */
private void addDnsRoute(Hop hop, final Request request)
    throws ParseException, SipException {
  if(hop != null && sipFactoryImpl.getSipApplicationDispatcher().isExternal(hop.getHost(), hop.getPort(), hop.getTransport())) {	
    javax.sip.address.SipURI nextHopUri = SipFactoryImpl.addressFactory.createSipURI(null, hop.getHost());
    nextHopUri.setLrParam();
    nextHopUri.setPort(hop.getPort());
    if(hop.getTransport() != null) {
      nextHopUri.setTransportParam(hop.getTransport());
    }
    // Deal with http://code.google.com/p/mobicents/issues/detail?id=2346
    nextHopUri.setParameter(DNSAwareRouter.DNS_ROUTE, Boolean.TRUE.toString());
    final javax.sip.address.Address nextHopRouteAddress = 
      SipFactoryImpl.addressFactory.createAddress(nextHopUri);
    final RouteHeader nextHopRouteHeader = 
      SipFactoryImpl.headerFactory.createRouteHeader(nextHopRouteAddress);
    if(logger.isDebugEnabled()) {
      logger.debug("Adding next hop found by RFC 3263 lookups as route header" + nextHopRouteHeader);			    	
    }

    request.addFirst(nextHopRouteHeader);
  }
}
origin: org.mobicents.servlet.sip/sip-servlets-impl

@Override
public List<SipURI> locateURIs(SipURI uri) {
  List<SipURI> uris = new CopyOnWriteArrayList();
  if (uri instanceof SipURIImpl && createAddressFactory != null) {
    SipURIImpl uriImpl = (SipURIImpl) uri;
    Queue<Hop> hops = dnsServerLocator.locateHops(uriImpl.getSipURI());
    if(hops != null) {
      for (Hop hop : hops) {
        javax.sip.address.SipURI createSipURI;
        try {
          //use null as user so this uri may be used potentially
          //as Route Header
          createSipURI = createAddressFactory.createSipURI(null, hop.getHost());
          createSipURI.setPort(hop.getPort());
          createSipURI.setTransportParam(hop.getTransport());
          SipURI sipURI = new SipURIImpl(createSipURI, ModifiableRule.NotModifiable);
          uris.add(sipURI);
        } catch (ParseException ex) {
          logger.debug("Error creating SipURI.", ex);
        }
      }
    }
  }
  return uris;
}
origin: org.mobicents.servlet.sip/sip-servlets-impl

String hopTransport = null;
if(hop != null) {
  hopTransport = hop.getTransport();
origin: org.jitsi/jain-sip-ri-ossonly

if (nextHop.getTransport().equalsIgnoreCase(
    nextProcessor.getTransport())
    && sourceIpAddress.equals(nextProcessor.getIpAddress()
origin: org.jitsi/jain-sip-ri-ossonly

@Override
public void send(SIPRequest ackRequest) throws SipException, IOException {
  hop = sipStack.getNextHop(ackRequest);
  if (hop == null)
  throw new SipException("No route!");
  if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG))
    logger.logDebug("hop = " + hop);
  ListeningPointImpl lp = (ListeningPointImpl) sipProvider
      .getListeningPoint(hop.getTransport());
  if (lp == null)
    throw new SipException(
        "No listening point for this provider registered at "
            + hop);
  InetAddress inetAddress = InetAddress.getByName(hop.getHost());
  MessageChannel messageChannel = lp.getMessageProcessor()
      .createMessageChannel(inetAddress, hop.getPort());
        messageChannel.sendMessage(ackRequest);
}
origin: org.jitsi/jain-sip-ri-ossonly

          + transport);
MessageChannel messageChannel = sipStack.createRawMessageChannel(
    this.getListeningPoint(hop.getTransport()).getIPAddress(),
    listeningPoint.port, hop);
messageChannel.sendMessage(sipResponse);
origin: org.mobicents.servlet.sip/sip-servlets-impl

((MessageExt)message).setApplicationData(hop.getTransport());
origin: org.mobicents.servlet.sip/sip-servlets-impl

  sipFactoryImpl.getAddressFactory().createSipURI(null, hop.getHost());
routeURI.setPort(hop.getPort());
routeURI.setTransportParam(hop.getTransport());
routeURI.setLrParam();
RouteHeader routeHeader = sipFactoryImpl.getHeaderFactory().createRouteHeader(
origin: org.jitsi/jain-sip-ri-ossonly

if (messageProcessor.getIpAddress().equals(hopAddr)
    && messageProcessor.getPort() == hop.getPort()
    && messageProcessor.getTransport().equalsIgnoreCase(hop.getTransport())) {
  MessageChannel messageChannel = messageProcessor.createMessageChannel(
      hopAddr, hop.getPort());
origin: org.jitsi/jain-sip-ri-ossonly

if (this.listeningPoints.containsKey(hop.getTransport()
    .toUpperCase())) {
  messageChannel = sipStack.createRawMessageChannel(
      this.getListeningPoint(hop.getTransport()).getIPAddress(),
      this.getListeningPoint(hop.getTransport()).getPort(), hop);
origin: org.jitsi/jain-sip-ri-ossonly

 transport = hop.getTransport();
 if(transport == null) transport = "udp";
 ListeningPointImpl lp = (ListeningPointImpl) this
String transport = hop.getTransport();
ListeningPointImpl listeningPoint = (ListeningPointImpl) this
 .getListeningPoint(transport);
origin: org.jitsi/jain-sip-ri-ossonly

  this.getSipProvider().getListeningPoint(hop.getTransport())
      .getIPAddress(), this.firstTransactionPort, hop);
messageChannel = sipStack.createRawMessageChannel(this
    .getSipProvider().getListeningPoint(
        outboundProxy.getTransport()).getIPAddress(),
    this.firstTransactionPort, outboundProxy);
if (messageChannel != null)
origin: org.jitsi/jain-sip-ri-ossonly

       .getTransport());
} catch (SipException ex) {
  if (logger.isLoggingEnabled())
javax.sip.addressHopgetTransport

Popular methods of Hop

  • getHost
  • getPort
  • toString

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • setContentView (Activity)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now