Codota Logo
StringUtils.parseStringList
Code IndexAdd Codota to your IDE (free)

How to use
parseStringList
method
in
com.sun.enterprise.util.StringUtils

Best Java code snippets using com.sun.enterprise.util.StringUtils.parseStringList (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: eclipse-ee4j/glassfish

/**
 * Parses a string containing substrings separated from
 * each other by the standard separator characters and returns
 * a list of strings.
 *
 * Splits the string <code>line</code> into individual string elements
 * separated by the field separators, and returns these individual
 * strings as a list of strings. The individual string elements are
 * trimmed of leading and trailing whitespace. Only non-empty strings
 * are returned in the list.
 *
 * @param line The string to split
 * @return     Returns the list containing the individual strings that
 *             the input string was split into.
 */
public static List<String> parseStringList(String line) {
  return parseStringList(line, null);
}
origin: org.glassfish.main.common/common-util

/**
 * Parses a string containing substrings separated from
 * each other by the standard separator characters and returns
 * a list of strings.
 *
 * Splits the string <code>line</code> into individual string elements
 * separated by the field separators, and returns these individual
 * strings as a list of strings. The individual string elements are
 * trimmed of leading and trailing whitespace. Only non-empty strings
 * are returned in the list.
 *
 * @param line The string to split
 * @return     Returns the list containing the individual strings that
 *             the input string was split into.
 */
public static List<String> parseStringList(String line) {
  return parseStringList(line, null);
}
origin: org.glassfish.common/common-util

/**
 * Parses a string containing substrings separated from
 * each other by the standard separator characters and returns
 * a list of strings.
 *
 * Splits the string <code>line</code> into individual string elements 
 * separated by the field separators, and returns these individual 
 * strings as a list of strings. The individual string elements are 
 * trimmed of leading and trailing whitespace. Only non-empty strings
 * are returned in the list.
 *
 * @param line The string to split
 * @return     Returns the list containing the individual strings that
 *             the input string was split into.
 */
public static List<String> parseStringList(String line) {
  return parseStringList(line, null);
}
origin: org.glassfish.web/web-glue

/**
 * Configures the cache control of this VirtualServer
 */
void configureCacheControl(String cacheControl){
  if (cacheControl != null) {
    List<String> values = StringUtils.parseStringList(cacheControl, ",");
    if (values != null && !values.isEmpty()) {
      setCacheControls(values.toArray(new String[values.size()]));
    }
  }
}
origin: org.glassfish.main.core/kernel

private void initializeSigTypeList() {
  String sigTypesParam = env.getStartupContext().getArguments().getProperty(SIGNATURE_TYPES_PARAM);
  if (sigTypesParam != null) {
    sigTypeList = StringUtils.parseStringList(sigTypesParam, ",");
  }
  sigTypeList.add(".SF");
  sigTypeList.add(".sf");
  sigTypeList.add(".RSA");
  sigTypeList.add(".rsa");
  sigTypeList.add(".DSA");
  sigTypeList.add(".dsa");
  sigTypeList.add(".PGP");
  sigTypeList.add(".pgp");
}
origin: org.glassfish.web/web-glue

/**
 * Adds each host name from the 'hosts' attribute as an alias
 */
void configureAliases() {
  List hosts = StringUtils.parseStringList(vsBean.getHosts(), ",");
  for (int i=0; i < hosts.size(); i++ ){
    String alias = hosts.get(i).toString();
    if ( !alias.equalsIgnoreCase("localhost") &&
        !alias.equalsIgnoreCase("localhost.localdomain")){
      addAlias(alias);
    }
  }
}

origin: org.glassfish.web/web-glue

List<String> vsListeners = StringUtils.parseStringList(vse.getNetworkListeners(), ",");
for (int j = 0; vsListeners != null && j < vsListeners.size(); j++) {
  if (listenerId.equals(vsListeners.get(j))) {
com.sun.enterprise.config.serverbeans.VirtualServer vs
    = listenerVses.get(i);
List hosts = StringUtils.parseStringList(vs.getHosts(), ",");
for (int j = 0; hosts != null && j < hosts.size(); j++) {
  String host = (String) hosts.get(j);
    List otherHosts = StringUtils.parseStringList(otherVs.getHosts(), ",");
    for (int l = 0; otherHosts != null && l < otherHosts.size(); l++) {
      if (host.equals(otherHosts.get(l))) {
origin: org.glassfish.web/web-glue

/**
 * Gets all the virtual servers whose http-listeners attribute value
 * contains the given http-listener id.
 */
List<VirtualServer> getVirtualServersForHttpListenerId(
    HttpService httpService, String httpListenerId) {
  if (httpListenerId == null) {
    return null;
  }
  List<VirtualServer> result = new ArrayList<VirtualServer>();
  for (com.sun.enterprise.config.serverbeans.VirtualServer vs : httpService.getVirtualServer()) {
    List<String> listeners = StringUtils.parseStringList(vs.getNetworkListeners(), ",");
    if (listeners != null) {
      ListIterator<String> iter = listeners.listIterator();
      while (iter.hasNext()) {
        if (httpListenerId.equals(iter.next())) {
          VirtualServer match = (VirtualServer)
              getEngine().findChild(vs.getId());
          if (match != null) {
            result.add(match);
          }
          break;
        }
      }
    }
  }
  return result;
}
origin: org.glassfish.main.core/kernel

@Override
public void registerEndpoint(String contextRoot, HttpHandler endpointAdapter,
  ApplicationContainer container, String virtualServers) throws EndpointRegistrationException {
  List<String> virtualServerList;
  if (virtualServers == null) {
    virtualServerList = 
      config.getHttpService().getNonAdminVirtualServerList();
  } else{
    virtualServerList = 
      StringUtils.parseStringList(virtualServers, ",");
  }
  registerEndpoint(contextRoot, virtualServerList, endpointAdapter, container);
}
origin: org.glassfish.web/web-glue

              String hosts) {
boolean hasBeenSuspended = false;
List<String> hostList = StringUtils.parseStringList(hosts, " ,");
if (hostList == null || hostList.isEmpty()) {
  return hasBeenSuspended;
origin: org.glassfish.deployment/deployment-client

List<String> subModuleInfoList = deploymentFacility.getSubModuleInfoForJ2EEApplication(tmid.getModuleID());
for (String subModuleInfo : subModuleInfoList) {
  List<String> infoParts = StringUtils.parseStringList(
    subModuleInfo, ":");   
  String subModuleName = infoParts.get(0);
origin: org.glassfish.main.deployment/deployment-client

List<String> subModuleInfoList = deploymentFacility.getSubModuleInfoForJ2EEApplication(tmid.getModuleID());
for (String subModuleInfo : subModuleInfoList) {
  List<String> infoParts = StringUtils.parseStringList(
    subModuleInfo, ":");   
  String subModuleName = infoParts.get(0);
origin: org.glassfish.main.core/kernel

private List<AddressInfo> getAddressInfoFromVirtualServers(Collection<String> virtualServers) {
  List<AddressInfo> addressInfos = new ArrayList<AddressInfo>();
  List<NetworkListener> networkListenerList = config.getNetworkConfig().getNetworkListeners().getNetworkListener();
  for (String vs : virtualServers) {
    VirtualServer virtualServer = 
      config.getHttpService().getVirtualServerByName(vs);
    if (virtualServer == null) {
      // non-existent virtual server
      LOGGER.log(Level.WARNING, KernelLoggerInfo.grizzlyNonExistentVS, vs);
      continue;
    }
    String vsNetworkListeners = virtualServer.getNetworkListeners();
    List<String> vsNetworkListenerList =
      StringUtils.parseStringList(vsNetworkListeners, ",");
    if (vsNetworkListenerList != null && !vsNetworkListenerList.isEmpty()) {
      for (String vsNetworkListener : vsNetworkListenerList) {
        for (NetworkListener networkListener : networkListenerList) {
          if (networkListener.getName().equals(vsNetworkListener) &&
            Boolean.valueOf(networkListener.getEnabled())) {
            addressInfos.add(new AddressInfo(networkListener.getAddress(),
                             networkListener.getPort()));
            break;
          }
        }
      }
    }
  } 
  return addressInfos;
}
origin: org.glassfish.main.web/war-util

DeployCommandParameters params = dc.getCommandParameters(DeployCommandParameters.class);
String vsIDs = params.virtualservers;
List<String> vsList = StringUtils.parseStringList(vsIDs, " ,");
if (httpService != null && vsList != null && !vsList.isEmpty()) {
  for (VirtualServer vsBean : httpService.getVirtualServer()) {
origin: org.glassfish.web/web-glue

List<String> listeners = StringUtils.parseStringList(
    vsBean.getNetworkListeners(), ",");
if (listeners == null) {
origin: org.glassfish.deployment/deployment-admin

StringUtils.parseStringList(vsHttpListeners, " ,");
origin: org.glassfish.web/web-glue

void setErrorHandler(Config serverConfig, GrizzlyService grizzlyService, boolean disable) {
  List<String> listenerList = StringUtils.parseStringList(
      vsBean.getNetworkListeners(), ",");
  String[] listeners = (listenerList != null) ?
origin: org.glassfish.deployment/deployment-admin

vsList = StringUtils.parseStringList(appRef.getVirtualServers(), " ,");
origin: org.glassfish.web/web-glue

    StringUtils.parseStringList(packagesName, " ,");
for(String overridablePackage : overridablePackages) {
  loader.addOverridablePackage(overridablePackage);
origin: org.glassfish.main.core/kernel

    StringUtils.parseStringList(vs.getNetworkListeners(), " ,");
if (vsListeners == null || vsListeners.isEmpty()
    || vsListeners.contains(listener.getName())) {
com.sun.enterprise.utilStringUtilsparseStringList

Javadoc

Parses a string containing substrings separated from each other by the standard separator characters and returns a list of strings. Splits the string line into individual string elements separated by the field separators, and returns these individual strings as a list of strings. The individual string elements are trimmed of leading and trailing whitespace. Only non-empty strings are returned in the list.

Popular methods of StringUtils

  • ok
  • cat
    Concatenate a list of strings, putting a separator in between each one. If the list is one string, t
  • quotePathIfNecessary
    Nightmares can result from using a path with a space in it! This method will enclose in the specifie
  • removeEnclosingQuotes
    Removes the quoting around a String.
  • replace
  • getStackTrace
  • isDoubleQuoted
  • isHex
  • isSingleQuoted
  • isToken
  • padLeft
  • padRight
  • padLeft,
  • padRight,
  • stripToken,
  • testHex,
  • testToLine,
  • toLines,
  • toShortClassName,
  • usage,
  • UpperCaseFirstLetter

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • JButton (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now