org.apache.xml.utils.URI.setScheme()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(9.6k)|赞(0)|评价(0)|浏览(206)

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

URI.setScheme介绍

[英]Set the scheme for this URI. The scheme is converted to lowercase before it is set.
[中]设置此URI的方案。方案在设置之前会转换为小写。

代码示例

代码示例来源:origin: robovm/robovm

setScheme(scheme);

代码示例来源:origin: xalan/xalan

setScheme(scheme);

代码示例来源:origin: xalan/xalan

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: robovm/robovm

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: robovm/robovm

setScheme(p_scheme);
setHost(p_host);
setPort(p_port);

代码示例来源:origin: xalan/xalan

setScheme(p_scheme);
setHost(p_host);
setPort(p_port);

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

setScheme(scheme);

代码示例来源:origin: com.bugvm/bugvm-rt

setScheme(scheme);

代码示例来源:origin: MobiVM/robovm

setScheme(scheme);

代码示例来源:origin: ibinti/bugvm

setScheme(scheme);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

setScheme(scheme);

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

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: ibinti/bugvm

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: MobiVM/robovm

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Construct a new URI that does not follow the generic URI syntax.
 * Only the scheme and scheme-specific part (stored as the path) are
 * initialized.
 *
 * @param p_scheme the URI scheme (cannot be null or empty)
 * @param p_schemeSpecificPart the scheme-specific part (cannot be
 *                             null or empty)
 *
 * @throws MalformedURIException if p_scheme violates any
 *                                  syntax rules
 */
public URI(String p_scheme, String p_schemeSpecificPart)
    throws MalformedURIException
{
 if (p_scheme == null || p_scheme.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme!");
 }
 if (p_schemeSpecificPart == null
     || p_schemeSpecificPart.trim().length() == 0)
 {
  throw new MalformedURIException(
   "Cannot construct URI with null/empty scheme-specific part!");
 }
 setScheme(p_scheme);
 setPath(p_schemeSpecificPart);
}

相关文章