I'm currently doing a project using Spring mvc and was working on my backend part.(Dealing with bookmarks) I have created a engine interface (IBookmarkEngine) and then made my implementation (BookmarkEngine). I'm just having trouble making this work. How do I create an engine that prefixes url "http://"?
public class BookmarkEngine implements IBookmarkEngine {
private static final String URL_PREFIX = "http://";
@Override
public String getFullUrl(String url) {
if () {
return;
}
return url;
}
}