Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.graylog2.restroutes.generated;
 
 
 public class StreamRuleResource {
 
 
     public PathMethod get(String streamid) {
        return new PathMethod("GET""/streams/"+streamid+"/rules");
    }
    public PathMethod get(String streamidString streamRuleId) {
        return new PathMethod("GET""/streams/"+streamid+"/rules/"+streamRuleId+"");
    }
    public PathMethod delete(String streamidString streamRuleId) {
        return new PathMethod("DELETE""/streams/"+streamid+"/rules/"+streamRuleId+"");
    }
    public PathMethod create(String streamid) {
        return new PathMethod("POST""/streams/"+streamid+"/rules");
    }
    public PathMethod update(String streamidString streamRuleId) {
        return new PathMethod("POST""/streams/"+streamid+"/rules/"+streamRuleId+"");
    }
New to GrepCode? Check out our FAQ X