org.graylog2.restroutes.generated.StreamOutputResource Maven / Gradle / Ivy
The newest version!
package org.graylog2.restroutes.generated;
import org.graylog2.restroutes.PathMethod;
public class StreamOutputResource {
public PathMethod add(String streamid) {
return new PathMethod("POST", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/outputs");
}
public PathMethod remove(String streamid, String outputId) {
return new PathMethod("DELETE", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/outputs/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(outputId)+"");
}
public PathMethod get(String streamid) {
return new PathMethod("GET", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/outputs");
}
public PathMethod get(String streamid, String outputId) {
return new PathMethod("GET", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/outputs/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(outputId)+"");
}
}