Commit a561919e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

typos

parent d5b04014
......@@ -19,8 +19,8 @@ import org.apache.log4j.Logger;
import lcsb.mapviewer.annotation.services.WrongResponseCodeIOException;
/**
* This class helps to download webpages. The pages are downloaded in separate
* thred, due to the fact that sometimes java socket can hang (related JVM bug:
* This class helps to download web pages. The pages are downloaded in separate
* thread, due to the fact that sometimes java socket can hang (related JVM bug:
* https://bugs.openjdk.java.net/browse/JDK-8075484 ).
*
* @author Piotr Gawron
......@@ -35,13 +35,13 @@ public class WebPageDownloader {
/**
* Hard timeout (threads are terminated) of http connection that access data
* across internet.
* across Internet.
*/
private static final int HTTP_CONNECTION_TIMEOUT_SEC = 120;
/**
* How much time should the thread sleep before another try to access the
* webpage that thrown INTERNAL SERVER ERROR http response.
* web page that thrown INTERNAL SERVER ERROR http response.
*/
private static final int HTTP_INTERNAL_ERROR_RECONNECT_SLEEP_TIME = 2000;
......@@ -52,18 +52,18 @@ public class WebPageDownloader {
private static final int HTTP_INTERNAL_ERROR_RECONNECT_TIMES = 2;
/**
* Returns content of the webpage identified by url.
* Returns content of the web page identified by url.
*
* @param accessUrl
* url of a webpage
* @return content of the webpage identified by url
* url of a web page
* @return content of the web page identified by url
* @throws IOException
* thrown when there is any problem with accesing webpage
* thrown when there is any problem with accessing web page
*/
public String getFromNetwork(String accessUrl) throws IOException {
/**
* Tasks that retrieves content from webpage
* Tasks that retrieves content from web page
*
* @author Piotr Gawron
*
......@@ -139,7 +139,7 @@ public class WebPageDownloader {
* argument.
*
* @param accessUrl
* url to the webpagae
* url to the web page
* @return {@link HttpURLConnection connection} to the url given in the
* argument
* @throws MalformedURLException
......
......@@ -63,7 +63,7 @@ public class Layout implements Serializable {
private String title;
/**
* Is the layout publically available.
* Is the layout publicly available.
*/
private boolean publicLayout = false;
......@@ -80,13 +80,13 @@ public class Layout implements Serializable {
private Integer hierarchyViewLevel;
/**
* ModelData to which layout is assigend.
* ModelData to which layout is assigned.
*/
@ManyToOne(fetch = FetchType.LAZY)
private ModelData model;
/**
* Whou created the layout.
* Who created the layout.
*/
@ManyToOne(fetch = FetchType.LAZY)
private User creator;
......
......@@ -323,7 +323,7 @@ public interface ILayoutService {
List<LayoutView> getCustomLayouts(Model model, User user);
/**
* Returns list of general publically available layouts.
* Returns list of general publicly available layouts.
*
* @param model
* model where the layouts lay on
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment