Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.javaswift.joss.headers.container;
 
Allows the rights change of a container to and from public/private
 
 public class ContainerRights extends Header {
    public static final String X_CONTAINER_READ = "X-Container-Read";
    public static final String PUBLIC_CONTAINER = ".r:*";
    private boolean publicContainer;
    public ContainerRights(boolean publicContainer) {
        this. = publicContainer;
    }
    public boolean isPublic() {
        return this.;
    }
    @Override
    public String getHeaderValue() {
        return  ?  : "";
    }
    @Override
    public String getHeaderName() {
        return ;
    }
    public static ContainerRights fromResponse(HttpResponse response) {
        return new ContainerRights(headerNotEmpty(response));
    }
New to GrepCode? Check out our FAQ X