Tabnine Logo
StringUtils.splitBySlash
Code IndexAdd Tabnine to your IDE (free)

How to use
splitBySlash
method
in
com.ocpsoft.pretty.faces.util.StringUtils

Best Java code snippets using com.ocpsoft.pretty.faces.util.StringUtils.splitBySlash (Showing top 4 results out of 315)

origin: ocpsoft/prettyfaces

/**
* Create a URL object for the given url String. The input string must not yet have been decoded.
* 
* @param url The raw, un-decoded url String
*/
public URL(String url)
{
 if (url != null)
 {
   url =url.trim();
   originalURL = url;
   if (StringUtils.hasLeadingSlash(url))
   {
    metadata.setLeadingSlash(true);
    url = url.substring(1);
   }
   if (StringUtils.hasTrailingSlash(url))
   {
    metadata.setTrailingSlash(true);
    url = url.substring(0, url.length() - 1);
   }
   this.segments = Arrays.asList(StringUtils.splitBySlash(url));
 }
 else
 {
   throw new IllegalArgumentException("URL cannot be null.");
 }
}
origin: ocpsoft/rewrite

/**
* Create a URL object for the given url String. The input string must not yet have been decoded.
* 
* @param url The raw, un-decoded url String
*/
public URL(String url)
{
 if (url != null)
 {
   url = url.trim();
   originalURL = url;
   if (StringUtils.hasLeadingSlash(url))
   {
    metadata.setLeadingSlash(true);
    url = url.substring(1);
   }
   if (StringUtils.hasTrailingSlash(url))
   {
    metadata.setTrailingSlash(true);
    url = url.substring(0, url.length() - 1);
   }
   this.segments = Arrays.asList(StringUtils.splitBySlash(url));
 }
 else
 {
   throw new IllegalArgumentException("URL cannot be null.");
 }
}
origin: com.ocpsoft/prettyfaces-jsf2

/**
* Create a URL object for the given url String. The input string must not yet have been decoded.
* 
* @param url The raw, un-decoded url String
*/
public URL(String url)
{
 if (url != null)
 {
   url =url.trim();
   originalURL = url;
   if (StringUtils.hasLeadingSlash(url))
   {
    metadata.setLeadingSlash(true);
    url = url.substring(1);
   }
   if (StringUtils.hasTrailingSlash(url))
   {
    metadata.setTrailingSlash(true);
    url = url.substring(0, url.length() - 1);
   }
   this.segments = Arrays.asList(StringUtils.splitBySlash(url));
 }
 else
 {
   throw new IllegalArgumentException("URL cannot be null.");
 }
}
origin: ocpsoft/prettyfaces

/**
* Create a URL object for the given url String. The input string must not yet have been decoded.
* 
* @param url The raw, un-decoded url String
*/
public URL(String url)
{
 if (url != null)
 {
   url =url.trim();
   originalURL = url;
   if (StringUtils.hasLeadingSlash(url))
   {
    metadata.setLeadingSlash(true);
    url = url.substring(1);
   }
   if (StringUtils.hasTrailingSlash(url))
   {
    metadata.setTrailingSlash(true);
    url = url.substring(0, url.length() - 1);
   }
   this.segments = Arrays.asList(StringUtils.splitBySlash(url));
 }
 else
 {
   throw new IllegalArgumentException("URL cannot be null.");
 }
}
com.ocpsoft.pretty.faces.utilStringUtilssplitBySlash

Popular methods of StringUtils

  • countSlashes
  • hasLeadingSlash
  • hasTrailingSlash
  • isBlank
  • isNotBlank

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now