package de.jeha.kame.crawler.scheduler.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author jenshadlich@googlemail.com
 */
public class SubmitCrawlJobRequest {

    @JsonProperty
    private String name;

    @JsonProperty
    private String seedUrl;
    //private List<String> allowedDomains;

    public String getName() {
        return name;
    }

    public String getSeedUrl() {
        return seedUrl;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
    }

}

@@ -215,16 +215,40 @@
 Style;%0A%0A
+import java.util.List;%0A%0A
 /**%0A * @
@@ -417,14 +417,31 @@
 rl;%0A
+%0A
     
-//
+@JsonProperty%0A    
 priv
@@ -561,24 +561,24 @@
 SeedUrl() %7B%0A
-
         retu
@@ -592,24 +592,108 @@
 Url;%0A    %7D%0A%0A
+    public List%3CString%3E getAllowedDomains() %7B%0A        return allowedDomains;%0A    %7D%0A%0A
     @Overrid

add allowedUrls