Package de.frankmuenster.mahoe.utils
Class WebUtils
java.lang.Object
de.frankmuenster.mahoe.utils.WebUtils
Utility class for web methods
- Author:
- Frank Münster
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
HTML tag anchor "a"static final String
HTML tag hrefstatic final String
HTML tag paragraph "li"static final String
HTML tag paragraph "p"static final String
HTML tag "table"static final String
HTML tag for table body "tbody"static final String
HTML tag "td"static final String
HTML tag for the first cell "td[1]"static final String
HTML tag "tr" -
Method Summary
-
Field Details
-
HTML_TAG_HREF
HTML tag href- See Also:
-
HTML_TAG_TD
HTML tag "td"- See Also:
-
HTML_TAG_TD1
HTML tag for the first cell "td[1]"- See Also:
-
HTML_TAG_TR
HTML tag "tr"- See Also:
-
HTML_TAG_TABLE
HTML tag "table"- See Also:
-
HTML_TAG_TBODY
HTML tag for table body "tbody"- See Also:
-
HTML_TAG_ANCHOR
HTML tag anchor "a"- See Also:
-
HTML_TAG_PARAGRAPH
HTML tag paragraph "p"- See Also:
-
HTML_TAG_LINK
HTML tag paragraph "li"- See Also:
-
-
Method Details
-
getQueryMap
Returns the query parameters of an URI- Parameters:
query
-- Returns:
- a map with all param value pairs
-
isJson
Check if String looks like JSON- Parameters:
content
- the string to test- Returns:
- true in case content starts with {
- Throws:
WebSiteException
- in case string does not start with {
-