org.apache.commons.httpclient.URI.getRawPath()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中org.apache.commons.httpclient.URI.getRawPath()方法的一些代码示例,展示了URI.getRawPath()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URI.getRawPath()方法的具体详情如下:
包路径:org.apache.commons.httpclient.URI
类名称:URI
方法名:getRawPath

URI.getRawPath介绍

[英]Get the raw-escaped path.

path          = [ abs_path | opaque_part ]

[中]获取原始的逃逸路径。

path          = [ abs_path | opaque_part ]

代码示例

代码示例来源:origin: commons-httpclient/commons-httpclient

/**
 * Get the raw escaped path.
 *
 * @return the path '/' if empty or undefined
 */
public char[] getRawPath() {
  char[] path =  super.getRawPath();
  return (path == null || path.length == 0) ? rootPath : path;
}

代码示例来源:origin: commons-httpclient/commons-httpclient

/**
 * Get the escaped path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 *   abs_path      = "/"  path_segments 
 *   opaque_part   = uric_no_slash *uric
 * </pre></blockquote><p>
 *
 * @return the escaped path string
 */
public String getEscapedPath() {
  char[] path = getRawPath();
  return (path == null) ? null : new String(path);
}

代码示例来源:origin: commons-httpclient/commons-httpclient

/**
 * Get the path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 * </pre></blockquote><p>
 * @return the path string
 * @throws URIException If {@link #decode} fails.
 * @see #decode
 */
public String getPath() throws URIException { 
  char[] path =  getRawPath();
  return (path == null) ? null : decode(path, getProtocolCharset());
}

代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Get the raw escaped path.
 *
 * @return the path '/' if empty or undefined
 */
public char[] getRawPath() {
  char[] path =  super.getRawPath();
  return (path == null || path.length == 0) ? rootPath : path;
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Get the raw escaped path.
 *
 * @return the path '/' if empty or undefined
 */
public char[] getRawPath() {
  char[] path =  super.getRawPath();
  return (path == null || path.length == 0) ? rootPath : path;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Get the raw escaped path.
 *
 * @return the path '/' if empty or undefined
 */
public char[] getRawPath() {
  char[] path =  super.getRawPath();
  return (path == null || path.length == 0) ? rootPath : path;
}

代码示例来源:origin: org.apache.commons/httpclient

/**
 * Get the raw escaped path.
 *
 * @return the path '/' if empty or undefined
 */
public char[] getRawPath() {
  char[] path =  super.getRawPath();
  return (path == null || path.length == 0) ? rootPath : path;
}

代码示例来源:origin: org.apache.commons/httpclient

/**
 * Get the escaped path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 *   abs_path      = "/"  path_segments 
 *   opaque_part   = uric_no_slash *uric
 * </pre></blockquote><p>
 *
 * @return the escaped path string
 */
public String getEscapedPath() {
  char[] path = getRawPath();
  return (path == null) ? null : new String(path);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Get the escaped path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 *   abs_path      = "/"  path_segments 
 *   opaque_part   = uric_no_slash *uric
 * </pre></blockquote><p>
 *
 * @return the escaped path string
 */
public String getEscapedPath() {
  char[] path = getRawPath();
  return (path == null) ? null : new String(path);
}

代码示例来源:origin: org.zaproxy/zap

/**
 * Get the escaped path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 *   abs_path      = "/"  path_segments 
 *   opaque_part   = uric_no_slash *uric
 * </pre></blockquote><p>
 *
 * @return the escaped path string
 */
public String getEscapedPath() {
  char[] path = getRawPath();
  return (path == null) ? null : new String(path);
}

代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Get the escaped path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 *   abs_path      = "/"  path_segments 
 *   opaque_part   = uric_no_slash *uric
 * </pre></blockquote><p>
 *
 * @return the escaped path string
 */
public String getEscapedPath() {
  char[] path = getRawPath();
  return (path == null) ? null : new String(path);
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Get the escaped path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 *   abs_path      = "/"  path_segments 
 *   opaque_part   = uric_no_slash *uric
 * </pre></blockquote><p>
 *
 * @return the escaped path string
 */
public String getEscapedPath() {
  char[] path = getRawPath();
  return (path == null) ? null : new String(path);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Get the path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 * </pre></blockquote><p>
 * @return the path string
 * @throws URIException If {@link #decode} fails.
 * @see #decode
 */
public String getPath() throws URIException { 
  char[] path =  getRawPath();
  return (path == null) ? null : decode(path, getProtocolCharset());
}

代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Get the path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 * </pre></blockquote><p>
 * @return the path string
 * @throws URIException If {@link #decode} fails.
 * @see #decode
 */
public String getPath() throws URIException { 
  char[] path =  getRawPath();
  return (path == null) ? null : decode(path, getProtocolCharset());
}

代码示例来源:origin: org.zaproxy/zap

/**
 * Get the path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 * </pre></blockquote><p>
 * @return the path string
 * @throws URIException If {@link #decode} fails.
 * @see #decode
 */
public String getPath() throws URIException { 
  char[] path =  getRawPath();
  return (path == null) ? null : decode(path, getProtocolCharset());
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Get the path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 * </pre></blockquote><p>
 * @return the path string
 * @throws URIException If {@link #decode} fails.
 * @see #decode
 */
public String getPath() throws URIException { 
  char[] path =  getRawPath();
  return (path == null) ? null : decode(path, getProtocolCharset());
}

代码示例来源:origin: org.apache.commons/httpclient

/**
 * Get the path.
 * <p><blockquote><pre>
 *   path          = [ abs_path | opaque_part ]
 * </pre></blockquote><p>
 * @return the path string
 * @throws URIException If {@link #decode} fails.
 * @see #decode
 */
public String getPath() throws URIException { 
  char[] path =  getRawPath();
  return (path == null) ? null : decode(path, getProtocolCharset());
}

代码示例来源:origin: org.zaproxy/zap

path = prefix.getRawPath();

代码示例来源:origin: org.zaproxy/zap

/**
 * Filters any URI that does not start with the defined prefix.
 * 
 * @return {@code FetchStatus.VALID} if the {@code uri} starts with the {@code prefix}, {@code FetchStatus.OUT_OF_SCOPE}
 *         otherwise
 */
@Override
public FetchStatus checkFilter(URI uri) {
  if (uri == null) {
    return FetchStatus.OUT_OF_SCOPE;
  }
  String otherScheme = normalisedScheme(uri.getRawScheme());
  if (port != normalisedPort(otherScheme, uri.getPort())) {
    return FetchStatus.OUT_OF_SCOPE;
  }
  if (!scheme.equals(otherScheme)) {
    return FetchStatus.OUT_OF_SCOPE;
  }
  if (!hasSameHost(uri)) {
    return FetchStatus.OUT_OF_SCOPE;
  }
  if (!startsWith(uri.getRawPath(), path)) {
    return FetchStatus.OUT_OF_SCOPE;
  }
  return FetchStatus.VALID;
}

相关文章