com.watchrabbit.crawler.api.LinkDto Maven / Gradle / Ivy
/*
* Copyright 2015 Mariusz.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.watchrabbit.crawler.api;
/**
*
* @author Mariusz
*/
public class LinkDto {
private String url;
private String keyword;
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public static class Builder {
private final LinkDto item;
public Builder() {
this.item = new LinkDto();
}
public Builder withUrl(final String url) {
this.item.url = url;
return this;
}
public Builder withKeyword(final String keyword) {
this.item.keyword = keyword;
return this;
}
public LinkDto build() {
return this.item;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy