Create an implicit intent based on the given URI.
502985
public static Intent createUriIntent(String intentAction, String intentUri) {
        if (intentAction == null) {
            intentAction = Intent.ACTION_VIEW;
        }
        return new Intent(intentAction, Uri.parse(intentUri))
                .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
                        | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
    }
1341476
public URI toUri(final String stringUri) {
    try {
      final java.net.URI netUri = new java.net.URI(stringUri);
      return this.toEmfUri(netUri);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
1216952
public static Uri createUri(Class<? extends Model> type, Long id) {
		final StringBuilder uri = new StringBuilder();
		uri.append("content://");
		uri.append(sAuthority);
		uri.append("/");
		uri.append(Ollie.getTableName(type).toLowerCase());

		if (id != null) {
			uri.append("/");
			uri.append(id.toString());
		}

		return Uri.parse(uri.toString());
	}
254867
private String resolveUri(String rawUri, EntityContext context, boolean handleURIOverride) throws Siren4JException {
        String resolvedUri = rawUri;
        String baseUri = null;
        boolean fullyQualified = false;
        if (context.getCurrentObject() instanceof Resource) {
            Resource resource = (Resource) context.getCurrentObject();
            baseUri = resource.getBaseUri();
            fullyQualified = resource.isFullyQualifiedLinks() == null ? false : resource.isFullyQualifiedLinks();
            String override = resource.getOverrideUri();
            if (handleURIOverride && StringUtils.isNotBlank(override)) {
                resolvedUri = override;
            }
        }
        resolvedUri = handleTokenReplacement(resolvedUri, context);

        if (fullyQualified && StringUtils.isNotBlank(baseUri)
                && !isAbsoluteUri(resolvedUri)) {
            StringBuffer sb = new StringBuffer();
            sb.append(baseUri.endsWith("/") ? baseUri.substring(0, baseUri.length() - 1) : baseUri);
            sb.append(resolvedUri.startsWith("/") ? resolvedUri : "/" + resolvedUri);
            resolvedUri = sb.toString();
        }
        return resolvedUri;
    }
173718
public URI resolveUri(URI targetUri, URI srcOrigUri, URI srcId) {
        if(targetUri.isAbsolute()) {
            return targetUri;
        } else if(srcOrigUri==null || !srcOrigUri.isAbsolute()) {
            return targetUri;
        } else {
            return srcOrigUri.resolve(targetUri);
        }
    }
1102999
protected void executePutRequest(URI uri, Object obj)
    {
        executePutRequest(uri, obj, null, null);
    }
1083654
def intent(self, intent):
        ''' '''

        def _handler(func):
            self._handlers['IntentRequest'][intent] = func
            return func

        return _handler
928044
def resolveURI(self, URI):
        
        ret = libxml2mod.xmlACatalogResolveURI(self._o, URI)
        return ret
945263
private URI extractURI(RequestElements intuitRequest) throws FMSException
    {
        URI uri = null;

        try {
            uri = new URI(intuitRequest.getRequestParameters().get(RequestElements.REQ_PARAM_RESOURCE_URL));
        } catch (URISyntaxException e) {
            throw new FMSException("URISyntaxException", e);
        }
        return uri;
    }
1267292
@CheckReturnValue
  static URI createUri(String scheme, InetAddress address, int port) throws URISyntaxException {
    checkNotNull(address);
    return new URI(
        scheme,
        null /* userInfo */,
        InetAddresses.toUriString(address),
        port,
        null /* path */,
        null /* query */,
        null /* fragment */);
  }
1159095
private String encodeUri( String uri ) {
    String newUri = "";
    StringTokenizer st = new StringTokenizer( uri, "/ ", true );
    while ( st.hasMoreTokens()) {
      String tok = st.nextToken();
      if ( tok.equals( "/" ))
        newUri += "/";
      else if ( tok.equals( " " ))
        newUri += "%20";
      else {
        try {
          newUri += URLEncoder.encode( tok, "UTF-8" );
        } catch( UnsupportedEncodingException e ) {
          throw  Log.errRTExcept(e);
        }
      }
    }
    return newUri;
  }
293551
public void setUri(String v) {
    if (SourceFile_Type.featOkTst && ((SourceFile_Type)jcasType).casFeat_uri == null)
      jcasType.jcas.throwFeatMissing("uri", "de.julielab.jules.types.ace.SourceFile");
    jcasType.ll_cas.ll_setStringValue(addr, ((SourceFile_Type)jcasType).casFeatCode_uri, v);}
464474
def set_uri(self, uri):
        '''
        
        '''
        publicObj = self.get_public()
        if publicObj is not None:
            publicObj.set_uri(uri)
        else:
            publicObj = Cpublic()
            publicObj.set_uri(uri)
            self.set_public(publicObj)
567733
URI buildUri(String relativePath)
    {    
        URI uri = null;
        
        try
        {    
            uri = new URI(buildUrl(relativePath));   
        }
        catch (URISyntaxException e)
        {           
            logger.severe("Problem constructing URI: "+e.getClass().getName()+e.getMessage());
        }

        return uri;
    }
1151178
protected URI createUri(FileStatus i, UnixUserGroupInformation ugi,
      ClientProtocol nnproxy, HttpServletRequest request)
      throws IOException, URISyntaxException {
    return createUri(i.getPath().toString(),
        pickSrcDatanode(i, nnproxy), ugi, request);
  }
732720
def set_uri(self, uri, size, checksum, readable=True, writable=False,
                storage_class=None):
        """"""
        self.uri = uri
        self.size = size
        self.checksum = checksum
        self.writable = writable
        self.readable = readable
        self.storage_class = \
            current_app.config['FILES_REST_DEFAULT_STORAGE_CLASS'] \
            if storage_class is None else \
            storage_class
        return self
1075538
public static Intent createStartServiceIntent(
        Context context, String serviceClassName, String intentAction) {
      Intent intent = intentAction != null ? new Intent(intentAction) : new Intent();
      return intent.setClassName(context, serviceClassName);
    }