Mercurial > hg > LGServices
changeset 4:c30ff4f27ec3
adding developer guide documentation
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Mon, 18 May 2015 15:55:01 +0200 |
parents | 7ffaefcee5b5 |
children | bed954735db2 |
files | docs/LGServices_Developer_Guide.odt src/main/java/de/mpiwg/gazetteer/bo/LGBranch.java src/main/java/de/mpiwg/gazetteer/utils/HTTPUtils.java src/main/webapp/methods/dynastyAutocomplete.jsp |
diffstat | 4 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/gazetteer/bo/LGBranch.java Tue May 12 14:54:13 2015 +0200 +++ b/src/main/java/de/mpiwg/gazetteer/bo/LGBranch.java Mon May 18 15:55:01 2015 +0200 @@ -28,7 +28,6 @@ public class LGBranch extends DBEntry implements Cloneable, Serializable { private static final long serialVersionUID = 7805209462045170778L; - @Column(name="sectionId") private Long sectionId;
--- a/src/main/java/de/mpiwg/gazetteer/utils/HTTPUtils.java Tue May 12 14:54:13 2015 +0200 +++ b/src/main/java/de/mpiwg/gazetteer/utils/HTTPUtils.java Mon May 18 15:55:01 2015 +0200 @@ -98,10 +98,10 @@ return sb.toString(); } - public static HttpStringResponse getStringResponse(String link) throws IOException, KeyManagementException, NoSuchAlgorithmException{ - if(link.startsWith("https") || link.startsWith("HTTPS")) - return getHttpSSLStringResponse(link); - return getHttpStringResponse(link); + public static HttpStringResponse getStringResponse(String url) throws IOException, KeyManagementException, NoSuchAlgorithmException{ + if(url.startsWith("https") || url.startsWith("HTTPS")) + return getHttpSSLStringResponse(url); + return getHttpStringResponse(url); } private static HttpStringResponse getHttpSSLStringResponse(String link) throws IOException, KeyManagementException, NoSuchAlgorithmException{ @@ -140,7 +140,7 @@ private static HttpStringResponse getHttpStringResponse(String link) throws IOException{ - //System.out.println(link); + //System.out.println(url); URL url = new URL(link); HttpURLConnection httpConn = (HttpURLConnection)url.openConnection();
--- a/src/main/webapp/methods/dynastyAutocomplete.jsp Tue May 12 14:54:13 2015 +0200 +++ b/src/main/webapp/methods/dynastyAutocomplete.jsp Mon May 18 15:55:01 2015 +0200 @@ -6,8 +6,6 @@ <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> <% - - String term = request.getParameter("term"); List<String> list = sessionBean.getSearchPage().suggestDynasty(term, 10);