org.restlet.util.Series.getValuesArray()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(112)

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

Series.getValuesArray介绍

[英]Returns an array of all the values associated to the given parameter name.
[中]返回与给定参数名关联的所有值的数组。

代码示例

代码示例来源:origin: org.restlet/org.restlet

/**
 * Returns an array of all the values associated to the given parameter
 * name.
 * 
 * @param name
 *            The parameter name to match.
 * @return The array of values.
 */
public String[] getValuesArray(String name) {
  return getValuesArray(name, false);
}

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Returns an array of all the values associated to the given parameter
 * name.
 * 
 * @param name
 *            The parameter name to match.
 * @param ignoreCase
 *            Indicates if the name comparison is case sensitive.
 * @return The array of values.
 */
public String[] getValuesArray(String name, boolean ignoreCase) {
  return getValuesArray(name, ignoreCase, null);
}

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Returns an array of all the values associated to the given parameter
 * name.
 * 
 * @param name
 *            The parameter name to match (case sensitive).
 * @return The array of values.
 */
public String[] getValuesArray(String name) {
  return getValuesArray(name, false);
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Returns an array of all the values associated to the given parameter
 * name.
 * 
 * @param name
 *            The parameter name to match (case sensitive).
 * @return The array of values.
 */
public String[] getValuesArray(String name) {
  return getValuesArray(name, false);
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Returns an array of all the values associated to the given parameter
 * name.
 * 
 * @param name
 *            The parameter name to match.
 * @param defaultValue
 *            The default value to return if no matching parameter found or
 *            if the parameter has a null value.
 * @return The array of values.
 */
public String[] getValuesArray(String name, String defaultValue) {
  return getValuesArray(name, false, defaultValue);
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Returns an array of all the values associated to the given parameter
 * name.
 * 
 * @param name
 *            The parameter name to match.
 * @param ignoreCase
 *            Indicates if the name comparison is case sensitive.
 * @return The array of values.
 */
public String[] getValuesArray(String name, boolean ignoreCase) {
  return getValuesArray(name, ignoreCase, null);
}

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Returns an array of all the values associated to the given parameter
 * name.
 * 
 * @param name
 *            The parameter name to match.
 * @param defaultValue
 *            The default value to return if no matching parameter found or
 *            if the parameter has a null value.
 * @return The array of values.
 */
public String[] getValuesArray(String name, String defaultValue) {
  return getValuesArray(name, false, defaultValue);
}

代码示例来源:origin: org.restlet.jee/org.restlet.ext.jaxrs

/**
 * @see javax.ws.rs.core.HttpHeaders#getRequestHeader(java.lang.String)
 */
public List<String> getRequestHeader(String headerName) {
  String[] values;
  values = Util.getHttpHeaders(this.request).getValuesArray(headerName,
      true);
  return Collections.unmodifiableList(Arrays.asList(values));
}

代码示例来源:origin: org.restlet.osgi/org.restlet

@Override
public List<RecipientInfo> getRecipientsInfo() {
  List<RecipientInfo> result = super.getRecipientsInfo();
  if (!recipientsInfoAdded) {
    for (String header : getHttpCall().getRequestHeaders()
        .getValuesArray(HeaderConstants.HEADER_VIA, true)) {
      new RecipientInfoReader(header).addValues(result);
    }
    recipientsInfoAdded = true;
  }
  return result;
}

代码示例来源:origin: org.restlet.osgi/org.restlet

@Override
public List<Warning> getWarnings() {
  List<Warning> result = super.getWarnings();
  if (!warningsAdded) {
    for (String header : getHttpCall().getRequestHeaders()
        .getValuesArray(HeaderConstants.HEADER_WARNING, true)) {
      new WarningReader(header).addValues(result);
    }
    warningsAdded = true;
  }
  return result;
}

代码示例来源:origin: org.restlet.osgi/org.restlet

@Override
public Set<String> getAccessControlRequestHeaders() {
  Set<String> result = super.getAccessControlRequestHeaders();
  if (!accessControlRequestHeadersAdded) {
    for (String header : getHttpCall()
        .getRequestHeaders()
        .getValuesArray(
            HeaderConstants.HEADER_ACCESS_CONTROL_REQUEST_HEADERS,
            true)) {
      new StringReader(header).addValues(result);
    }
    accessControlRequestHeadersAdded = true;
  }
  return result;
}

代码示例来源:origin: org.restlet.osgi/org.restlet

.getValuesArray("disabledCipherSuites");
Set<String> disabledCipherSuites = new HashSet<String>();
    .getValuesArray("disabledProtocols");
Set<String> disabledProtocols = new HashSet<String>();
    .getValuesArray("enabledCipherSuites");
Set<String> enabledCipherSuites = new HashSet<String>();
    .getValuesArray("enabledProtocols");
Set<String> enabledProtocols = new HashSet<String>();

代码示例来源:origin: org.restlet.jee/org.restlet.ext.ssl

.getValuesArray("disabledCipherSuites");
Set<String> disabledCipherSuites = new HashSet<String>();
    .getValuesArray("disabledProtocols");
Set<String> disabledProtocols = new HashSet<String>();
    .getValuesArray("enabledCipherSuites");
Set<String> enabledCipherSuites = new HashSet<String>();
    .getValuesArray("enabledProtocols");
Set<String> enabledProtocols = new HashSet<String>();

代码示例来源:origin: org.restlet.jse/org.restlet.ext.ssl

.getValuesArray("sslContextFactory");

代码示例来源:origin: org.restlet.jse/org.restlet.ext.ssl

.getValuesArray("disabledCipherSuites");
Set<String> disabledCipherSuites = new HashSet<String>();
    .getValuesArray("disabledProtocols");
Set<String> disabledProtocols = new HashSet<String>();
    .getValuesArray("enabledCipherSuites");
Set<String> enabledCipherSuites = new HashSet<String>();
    .getValuesArray("enabledProtocols");
Set<String> enabledProtocols = new HashSet<String>();

代码示例来源:origin: org.restlet.osgi/org.restlet

.getValuesArray("sslContextFactory");

代码示例来源:origin: org.restlet.jee/org.restlet.ext.ssl

.getValuesArray("sslContextFactory");

代码示例来源:origin: org.restlet.jse/org.restlet.ext.ssl

String[] crlArray = parameters.getValuesArray("crlUrl");
if (crlArray != null) {
  for (String crlUrl : crlArray) {

代码示例来源:origin: org.restlet.jee/org.restlet.ext.ssl

String[] crlArray = parameters.getValuesArray("crlUrl");
if (crlArray != null) {
  for (String crlUrl : crlArray) {

代码示例来源:origin: org.restlet.jse/org.restlet.ext.jsslutils

String[] crlArray = parameters.getValuesArray("crlUrl");
if (crlArray != null) {
  for (String crlUrl : crlArray) {

相关文章