Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.nirima.docker.client.model;
 
 
 import java.net.URL;

A repository or image name.
public class Repository {
    public final String name;

    
Name may be eg. 'busybox' or '10.0.0.1:5000/fred'

Parameters:
name Repository name
    public Repository(String name) {
        this. = name;
    }

    
Return the URL portion (repository). Note that this might not actually BE a repository location.

    public URL getURL() throws MalformedURLException {
        return new URL("http://" + );
    }
    @Override
    public String toString() {
        return Objects.toStringHelper(this)
                .add("name")
                .toString();
    }
    public String getPath() {
        if( !.contains("/") )
            return ;
        return .substring(.indexOf("/") + 1 );
    }
New to GrepCode? Check out our FAQ X