Returns the URI of the HTTP method

@return The URI

@throws URIException If the URI cannot be created.

@see org.apache.commons.httpclient.HttpMethod#getURI()
330704
@Override
    public URI getURI() throws URIException {
        StringBuffer buffer = new StringBuffer();
        if (this.httphost != null) {
            buffer.append(this.httphost.getProtocol().getScheme());
            buffer.append("://");
            buffer.append(this.httphost.getHostName());
            int port = this.httphost.getPort();
            if (port != -1 && port != this.httphost.getProtocol().getDefaultPort()) {
                buffer.append(":");
                buffer.append(port);
            }
        }
        buffer.append(this.path);
        if (this.queryString != null) {
            buffer.append('?');
            buffer.append(this.queryString);
        }
        String charset = getParams().getUriCharset();
        return new URI(buffer.toString(), true, charset);
    }
260692
public function getUri(){
		if (is_null($this->uri)){
			$this->uri = $this->makeUri();
		}

		return $this->uri;
	}
1214223
public URI getUri(final String name, final String defaultValue) {
    try {
      return getUri(name, new URI(defaultValue));
    } catch (final URISyntaxException e) {
      throw new IllegalArgumentException(e.getMessage());
    }
  }
717510
public String getURIReference() throws URIException {
        char[] uriReference = getRawURIReference();
        return (uriReference == null) ? null : decode(uriReference,
                getProtocolCharset());
    }
438653
public function getRequestUri()
    {
        if (isset($this->env['REQUEST_URI'])) {
            $uri = $this->env['REQUEST_URI'];
        } else {
            $uri = "/";
        }
        if (strstr($uri, "?")) {
            $uri = strstr($uri, "?", true);
        }
        return $uri;
    }
25310
public E get(String uri) {
		
		if(map==empty)
			return null;
		
		synchronized (map) {
			return map.get(uri);
		}
	}
501955
public String getUri() {
        String result = this.uri;

        if (result == null) {
            switch (this.code) {
                case 100:
                    result = BASE_HTTP + "#sec10.1.1";
                    break;
                case 101:
                    result = BASE_HTTP + "#sec10.1.2";
                    break;
                case 102:
                    result = BASE_WEBDAV + "#STATUS_102";
                    break;

                case 200:
                    result = BASE_HTTP + "#sec10.2.1";
                    break;
                case 201:
                    result = BASE_HTTP + "#sec10.2.2";
                    break;
                case 202:
                    result = BASE_HTTP + "#sec10.2.3";
                    break;
                case 203:
                    result = BASE_HTTP + "#sec10.2.4";
                    break;
                case 204:
                    result = BASE_HTTP + "#sec10.2.5";
                    break;
                case 205:
                    result = BASE_HTTP + "#sec10.2.6";
                    break;
                case 206:
                    result = BASE_HTTP + "#sec10.2.7";
                    break;
                case 207:
                    result = BASE_WEBDAV + "#STATUS_207";
                    break;

                case 300:
                    result = BASE_HTTP + "#sec10.3.1";
                    break;
                case 301:
                    result = BASE_HTTP + "#sec10.3.2";
                    break;
                case 302:
                    result = BASE_HTTP + "#sec10.3.3";
                    break;
                case 303:
                    result = BASE_HTTP + "#sec10.3.4";
                    break;
                case 304:
                    result = BASE_HTTP + "#sec10.3.5";
                    break;
                case 305:
                    result = BASE_HTTP + "#sec10.3.6";
                    break;
                case 307:
                    result = BASE_HTTP + "#sec10.3.8";
                    break;

                case 400:
                    result = BASE_HTTP + "#sec10.4.1";
                    break;
                case 401:
                    result = BASE_HTTP + "#sec10.4.2";
                    break;
                case 402:
                    result = BASE_HTTP + "#sec10.4.3";
                    break;
                case 403:
                    result = BASE_HTTP + "#sec10.4.4";
                    break;
                case 404:
                    result = BASE_HTTP + "#sec10.4.5";
                    break;
                case 405:
                    result = BASE_HTTP + "#sec10.4.6";
                    break;
                case 406:
                    result = BASE_HTTP + "#sec10.4.7";
                    break;
                case 407:
                    result = BASE_HTTP + "#sec10.4.8";
                    break;
                case 408:
                    result = BASE_HTTP + "#sec10.4.9";
                    break;
                case 409:
                    result = BASE_HTTP + "#sec10.4.10";
                    break;
                case 410:
                    result = BASE_HTTP + "#sec10.4.11";
                    break;
                case 411:
                    result = BASE_HTTP + "#sec10.4.12";
                    break;
                case 412:
                    result = BASE_HTTP + "#sec10.4.13";
                    break;
                case 413:
                    result = BASE_HTTP + "#sec10.4.14";
                    break;
                case 414:
                    result = BASE_HTTP + "#sec10.4.15";
                    break;
                case 415:
                    result = BASE_HTTP + "#sec10.4.16";
                    break;
                case 416:
                    result = BASE_HTTP + "#sec10.4.17";
                    break;
                case 417:
                    result = BASE_HTTP + "#sec10.4.18";
                    break;
                case 422:
                    result = BASE_WEBDAV + "#STATUS_422";
                    break;
                case 423:
                    result = BASE_WEBDAV + "#STATUS_423";
                    break;
                case 424:
                    result = BASE_WEBDAV + "#STATUS_424";
                    break;

                case 500:
                    result = BASE_HTTP + "#sec10.5.1";
                    break;
                case 501:
                    result = BASE_HTTP + "#sec10.5.2";
                    break;
                case 502:
                    result = BASE_HTTP + "#sec10.5.3";
                    break;
                case 503:
                    result = BASE_HTTP + "#sec10.5.4";
                    break;
                case 504:
                    result = BASE_HTTP + "#sec10.5.5";
                    break;
                case 505:
                    result = BASE_HTTP + "#sec10.5.6";
                    break;
                case 507:
                    result = BASE_WEBDAV + "#STATUS_507";
                    break;

                case 1000:
                    result = BASE_RESTLET
                            + "org/restlet/data/Statuses.html#CONNECTOR_ERROR_CONNECTION";
                    break;
                case 1001:
                    result = BASE_RESTLET
                            + "org/restlet/data/Statuses.html#CONNECTOR_ERROR_COMMUNICATION";
                    break;
                case 1002:
                    result = BASE_RESTLET
                            + "org/restlet/data/Statuses.html#CONNECTOR_ERROR_INTERNAL";
                    break;
            }
        }

        return result;
    }
726027
@Override
    URI getURI() {
        final URI uri = moduleRef.getLocation();
        if (uri == null) {
            // Some modules have no known module location (ModuleReference#location() can return null)
            throw new IllegalArgumentException("Module " + getModuleName() + " has a null location");
        }
        return uri;
    }
875983
public Map<String, String> getUrlParams(URI uri) throws URIException {
		Map<String, String> map = new HashMap<>();
		for (NameValuePair parameter : getUrlParamParser(uri.toString()).parseParameters(uri.getEscapedQuery())) {
			String value = parameter.getValue();
			if (value == null) {
				value = "";
			}
			map.put(parameter.getName(), value);
		}
		return map;
	}
518266
@Override
    public String getUri() {
        String escapedEntityId;
        try {
            escapedEntityId = URLEncoder.encode(primaryEntityId, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            throw new InvalidParameterException(
                    "UTF-8 encoding is not supported.");
        }
        return String.format("%s('%s')/$links/%s", primaryEntitySet,
                escapedEntityId, secondaryEntitySet);
    }
694001
private function getURI()
    {
        if (!empty($_SERVER['PATH_INFO'])) {
            $uri = $_SERVER['PATH_INFO'];
        } elseif (!empty($_SERVER['REQUEST_URI'])) {
            $uri = $_SERVER['REQUEST_URI'];
        } else {
            $uri = false;
        }

        if ($uri === '/') {
            $uri = false;
        }

        return trim(preg_replace('/\?.*/', '', $uri), '/');
    }
1304141
public URI getUri(final String name) {
    if (containsKey(name)) {
      try {
        return new URI(get(name));
      } catch (final URISyntaxException e) {
        throw new IllegalArgumentException(e.getMessage());
      }
    } else {
      throw new UndefinedPropertyException("Missing required property '" + name
          + "'");
    }
  }
966543
public function getReturnUri()
    {
        if ( null === $this->returnUri )
        {
            $request    = $this->getRequest();
            $session    = $this->getSessionContainer();
            $returnUri  = $request->getQuery( 'requestUri' );

            if ( empty( $returnUri ) )
            {
                $returnUri = $request->getPost( 'requestUri' );
            }

            if ( empty( $returnUri ) )
            {
                if ( isset( $session['returnUri'] ) )
                {
                    $returnUri = $session['returnUri'];
                }
                else
                {
                    $returnUri = self::DEFAULT_RETURN_URI;
                }
            }
            else
            {
                $session['returnUri'] = $returnUri;
            }

            if ( empty( $returnUri ) )
            {
                return '/';
            }

            $this->returnUri = $returnUri;
        }

        return $this->returnUri;
    }
848269
public URI build()
    {
        StringBuilder builder = new StringBuilder( baseURI.toString() );
        builder.append( path.toString() );
        if ( queryParams != null && !queryParams.isEmpty() ) {
            builder.append( queryParameters() );
        }
        return URI.create( builder.toString() );
    }
102963
public static String getRequestURI(HttpServletRequest httpRequest) {
        final StringBuilder url = new StringBuilder(100).append(httpRequest.getRequestURI());
        if (httpRequest.getQueryString() != null) {
            url.append('?').append(httpRequest.getQueryString());
        }

        return url.toString();
    }
319933
private String getURI(Map<String, Object> props) {
        if (props == null)
            return null;
        if (props.keySet().contains(URI)) {
            return (props.get(URI).toString());
        } else {
            return null;
        }
    }
346344
def get(self, uri):
        
        uri = self.URI + uri
        return self._client.get(uri)