Package org.serviceconnector.web
Class WebUtil
java.lang.Object
org.serviceconnector.web.WebUtil
The Class WebUtil.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic longgetResourceSize(String name) get size of resource.static URLgetResourceURL(String name) Gets the resource url.static StringgetXMLDateAsString(Date date) Gets the xML date as string.static DategetXMLDateFromString(String date) Gets the xML date from string.static StringgetXMLNextDateAsString(Date date) Gets the xML next date as string.static StringGets the xML previous date as string.static InputStreamloadResource(String name) Load resource.
-
Field Details
-
XMLSDF
The Constant XMLSDF.
-
-
Method Details
-
loadResource
Load resource.- Parameters:
name- the name- Returns:
- the input stream
-
getResourceSize
get size of resource.- Parameters:
name- the name- Returns:
- the size
-
getResourceURL
Gets the resource url.- Parameters:
name- the name- Returns:
- the resource url
-
getXMLDateAsString
Gets the xML date as string.- Parameters:
date- the date- Returns:
- the xML date as string
-
getXMLDateFromString
Gets the xML date from string.- Parameters:
date- the date- Returns:
- the xML date from string
-
getXMLNextDateAsString
Gets the xML next date as string.- Parameters:
date- the date- Returns:
- the xML next date as string
-
getXMLPreviousDateAsString
Gets the xML previous date as string.- Parameters:
date- the date- Returns:
- the xML previous date as string
-