Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.openesb.sdk.model;
 
 import java.util.Map;

Author(s):
David BRASSELY (brasseld at gmail.com)
OpenESB Community
public class ListComponentsRequest extends AbstractRequest {
    
    private ComponentType type;
    private State state;
    private String sharedLibraryName;
    private String serviceAssemblyName;
    public ComponentType getType() {
        return ;
    }
    public void setType(ComponentType type) {
        this. = type;
    }
    public State getState() {
        return ;
    }
    public void setState(State state) {
        this. = state;
    }
    public String getSharedLibraryName() {
        return ;
    }
    public void setSharedLibraryName(String sharedLibraryName) {
        this. = sharedLibraryName;
    }
    public String getServiceAssemblyName() {
        return ;
    }
    public void setServiceAssemblyName(String serviceAssemblyName) {
        this. = serviceAssemblyName;
    }
    @Override
    public HttpMethodName method() {
        return .;
    }
    @Override
    public String uri() {
        return "/components";
    }
    @Override
    public Map<StringStringparameters() {
        Map<StringStringparameters = super.parameters();
        
        parameters.put("library"getSharedLibraryName());
        parameters.put("assembly"getServiceAssemblyName());
        if (getType() != null) {
            parameters.put("type"getType().name());
        }
        if (getState() != null) {
            parameters.put("state"getState().name());
        }
        
        return parameters;
    }
New to GrepCode? Check out our FAQ X