Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 1&1 Internet AG, https://github.com/1and1/ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package net.oneandone.jasmin.descriptor;
Basic building block of a module, used to instantiate Files.
public class Resource {
    @Value
    private MimeType type;
    @Value
    private Base base;

    
may include encoded query parameters
    @Value
    private String path;
    @Option
    private String minPath;
    @Option
    private String variant;
    public Resource() {
        this(.."nopath"nullnull);
    }
    public Resource(MimeType typeBase baseString pathString minPathString variant) {
        if (path.startsWith("/")) {
            throw new IllegalArgumentException("path must not start with '/': " + path);
        }
        if (minPath != null && minPath.startsWith("/")) {
            throw new IllegalArgumentException("minPath must not start with '/': " + minPath);
        }
        this. = type;
        this. = base;
        this. = path;
        this. = minPath;
        this. = variant;
    }
    public MimeType getType() {
        return ;
    }
    public void setType(MimeType type) {
        this. = type;
    }
    public Base getBase() {
        return ;
    }
    public void setBase(Base base) {
        this. = base;
    }
    public String getPath() {
        return ;
    }
    public void setPath(String path) {
        this. = path;
    }
    public String getMinPath() {
        return ;
    }
    public void setMinPath(String minPath) {
        this. = minPath;
    }
    public String getVariant() {
        return ;
    }
    public void setVariant(String variant) {
        this. = variant;
    }
New to GrepCode? Check out our FAQ X