Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.javaswift.joss.client.factory;
 
 
 import java.net.URL;
 
 public enum TempUrlHashPrefixSource {
     PUBLIC_URL_PATH,
    INTERNAL_URL_PATH,
    ADMIN_URL_PATH;
    public static String getPath(String url) {
        try {
            return new URL(url).getPath();
        } catch (MalformedURLException e) {
            throw new CommandException("Unable to parse URL "+url);
        }
    }
New to GrepCode? Check out our FAQ X