Class XMLSchemaController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.XMLSchemaController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class XMLSchemaController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<Response<FormattedValue>>
org.springframework.http.HttpEntity<Response<FormattedValue>>
org.springframework.http.HttpEntity<Response<FormattedValue>>
formatDatePublished
(int year, int month, int day) org.springframework.http.HttpEntity<Response<FormattedValue>>
formatDateTimePublished
(int year, int month, int day, int hour, int minute, int second, String offset) org.springframework.http.HttpEntity<Response<FormattedValue>>
formatDurationPublished
(boolean isPositive, int year, int month, int day, int hour, int minute, int second) org.springframework.http.HttpEntity<Response<FormattedValue>>
formatTimePublished
(int hour, int minute, int second) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0)
-
Constructor Details
-
XMLSchemaController
public XMLSchemaController()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
formatDatePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/XMLSchema/formatDate", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<FormattedValue>> formatDatePublished(@RequestParam("year") int year, @RequestParam("month") int month, @RequestParam("day") int day) throws ParseException - Throws:
ParseException
-
formatDurationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/XMLSchema/formatDuration", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<FormattedValue>> formatDurationPublished(@RequestParam(value="isPositive",required=false,defaultValue="true") boolean isPositive, @RequestParam(value="year",required=false,defaultValue="0") int year, @RequestParam(value="month",required=false,defaultValue="0") int month, @RequestParam(value="day",required=false,defaultValue="0") int day, @RequestParam(value="hour",required=false,defaultValue="0") int hour, @RequestParam(value="minute",required=false,defaultValue="0") int minute, @RequestParam(value="second",required=false,defaultValue="0") int second) throws ParseException - Throws:
ParseException
-
formatCurrentLocalDateTimePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/XMLSchema/formatCurrentLocalDateTime", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<FormattedValue>> formatCurrentLocalDateTimePublished() -
formatDateTimePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/XMLSchema/formatDateTime", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<FormattedValue>> formatDateTimePublished(@RequestParam("year") int year, @RequestParam("month") int month, @RequestParam("day") int day, @RequestParam("hour") int hour, @RequestParam("minute") int minute, @RequestParam("second") int second, @RequestParam(value="offset",required=false,defaultValue="Z") String offset) throws ParseException - Throws:
ParseException
-
formatTimePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/XMLSchema/formatTime", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<FormattedValue>> formatTimePublished(@RequestParam("hour") int hour, @RequestParam("minute") int minute, @RequestParam("second") int second) throws ParseException - Throws:
ParseException
-
formatCurrentUTCDateTimePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/XMLSchema/formatCurrentUTCDateTime", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<FormattedValue>> formatCurrentUTCDateTimePublished()
-