protected void doCommon(HttpServletRequest request, HttpServletResponse response) { try { ServletOps.setNoCache(response) ; response.setContentType(contentTypeTextPlain); response.setCharacterEncoding(charsetUTF8) ; response.setStatus(HttpSC.OK_200); ServletOutputStream out = response.getOutputStream() ; out.println(DateTimeUtils.nowAsXSDDateTimeString()); } catch (IOException ex) { Fuseki.serverLog.warn("ping :: IOException :: "+ex.getMessage()); } } }
/** Now, as xsd:dateTime Node */ public static Node nowAsDateTime() { String lex = DateTimeUtils.nowAsXSDDateTimeString() ; return NodeFactory.createLiteral(lex, XSDDatatype.XSDdateTime) ; }
protected void doCommon(HttpServletRequest request, HttpServletResponse response) { try { ServletOps.setNoCache(response) ; response.setContentType(contentTypeTextPlain); response.setCharacterEncoding(charsetUTF8) ; response.setStatus(HttpSC.OK_200); ServletOutputStream out = response.getOutputStream() ; out.println(DateTimeUtils.nowAsXSDDateTimeString()); } catch (IOException ex) { Fuseki.serverLog.warn("ping :: IOException :: "+ex.getMessage()); } } }
private void start() { if ( startPoint != null ) { String msg = format("[Task %s] Async task has already been started", taskId) ; Log.warn(Fuseki.serverLog, msg) ; throw new InternalErrorException("Finish has already been called ["+getTaskId()+"]") ; } Fuseki.serverLog.info(format("[Task %s] starts : %s",taskId, displayName)) ; startPoint = DateTimeUtils.nowAsXSDDateTimeString() ; }
public void finish() { if ( finishPoint != null ) { String msg = format("[Task %s] Async task has already been finished", taskId) ; Log.warn(Fuseki.serverLog, msg) ; throw new InternalErrorException("Finish has already been called ["+getTaskId()+"]") ; } finishPoint = DateTimeUtils.nowAsXSDDateTimeString() ; Fuseki.serverLog.info(format("[Task %s] finishes : %s",taskId, displayName)) ; }
private void start() { if ( startPoint != null ) { String msg = format("[Task %s] Async task has already been started", taskId) ; Log.warn(Fuseki.serverLog, msg) ; throw new InternalErrorException("Finish has already been called ["+getTaskId()+"]") ; } Fuseki.serverLog.info(format("[Task %s] starts : %s",taskId, displayName)) ; startPoint = DateTimeUtils.nowAsXSDDateTimeString() ; }
public void finish() { if ( finishPoint != null ) { String msg = format("[Task %s] Async task has already been finished", taskId) ; Log.warn(Fuseki.serverLog, msg) ; throw new InternalErrorException("Finish has already been called ["+getTaskId()+"]") ; } finishPoint = DateTimeUtils.nowAsXSDDateTimeString() ; Fuseki.serverLog.info(format("[Task %s] finishes : %s",taskId, displayName)) ; }
private static String fromQueryTime(Context cxt) { // In UTC. Node n = cxt.get(ARQConstants.sysCurrentTime); String x = (n == null) ? DateTimeUtils.nowAsXSDDateTimeString() : n.getLiteralLexicalForm(); ZonedDateTime zdt = dtf.parse(x, ZonedDateTime::from); ZonedDateTime zdtLocal; // Convert to local timezone. (maybe should put the time into context as an Instant?) if ( ! zoneIdUTC.equals(ZoneId.systemDefault()) ) zdtLocal = zdt.withZoneSameInstant(ZoneId.systemDefault()); else zdtLocal = zdt; return dtf.format(zdtLocal); } }
version = null ; if ( buildDate != null && buildDate.equals("${build.time.xsd}") ) buildDate = DateTimeUtils.nowAsXSDDateTimeString() ;
version = null ; if ( buildDate != null && buildDate.equals("${build.time.xsd}") ) buildDate = DateTimeUtils.nowAsXSDDateTimeString() ;
version = null ; if ( buildDate != null && buildDate.equals("${build.time.xsd}") ) buildDate = DateTimeUtils.nowAsXSDDateTimeString() ;
version = null ; if ( buildDate != null && buildDate.equals("${build.time.xsd}") ) buildDate = DateTimeUtils.nowAsXSDDateTimeString() ;
version = null ; if ( buildDate != null && buildDate.equals("${build.time.xsd}") ) buildDate = DateTimeUtils.nowAsXSDDateTimeString() ;