public class TimeZoneResolver extends Controller.Util
Modifier and Type | Field and Description |
---|---|
static String |
SESSION_KEY |
CREATED, CREATED_JSON, CREATED_XML, NO_CONTENT, OK, OK_JSON, OK_XML
Constructor and Description |
---|
TimeZoneResolver() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static int |
serverTimezoneOffset() |
static int |
timezoneOffset()
Returns timezone offset from
current session . |
static int |
timezoneOffset(org.osgl.http.H.Session session)
Returns timezone offset from a session instance.
|
static void |
updateTimezoneOffset(int offset,
org.osgl.http.H.Session session) |
accepted, badRequest, badRequest, badRequest, badRequest, badRequestIf, badRequestIf, badRequestIf, badRequestIf, badRequestIfBlank, badRequestIfBlank, badRequestIfBlank, badRequestIfBlank, badRequestIfNot, badRequestIfNot, badRequestIfNot, badRequestIfNot, badRequestIfNull, badRequestIfNull, badRequestIfNull, badRequestIfNull, barcode, binary, binary, binary, conflict, conflict, conflict, conflict, conflictIf, conflictIf, conflictIf, conflictIf, conflictIfNot, conflictIfNot, conflictIfNot, conflictIfNot, created, created, download, download, download, download, download, download, forbidden, forbidden, forbidden, forbidden, forbiddenIf, forbiddenIf, forbiddenIf, forbiddenIf, forbiddenIfNot, forbiddenIfNot, forbiddenIfNot, forbiddenIfNot, forward, found, found, foundIf, foundIfNot, html, inferPrimitiveResult, inferResult, inferResult, inferResult, inferResult, inferResult, inferResult, inferResult, json, json, jsonMap, jwt, moved, moved, notAcceptable, notAcceptable, notFound, notFound, notFoundIf, notFoundIf, notFoundIfNot, notFoundIfNot, notFoundIfNull, notFoundIfNull, notModified, notModified, ok, permanentRedirect, permanentRedirect, qrcode, redirect, redirect, redirectIf, redirectIf, redirectIfNot, redirectIfNot, render, renderBarcode, renderBinary, renderBinary, renderBinary, renderHtml, renderJson, renderJson, renderJsonMap, renderJwt, renderQrcode, renderTemplate, renderTemplate, renderText, renderXml, seeOther, seeOther, seeOtherIf, seeOtherIfNot, template, template, temporaryRedirect, temporaryRedirect, text, unauthorized, unauthorized, unauthorized, unauthorizedIf, unauthorizedIf, unauthorizedIf, unauthorizedIfNot, unauthorizedIfNot, unauthorizedIfNot, xml
public static final String SESSION_KEY
public static void updateTimezoneOffset(int offset, org.osgl.http.H.Session session)
public static int timezoneOffset()
Returns timezone offset from current session
.
public static int timezoneOffset(org.osgl.http.H.Session session)
Returns timezone offset from a session instance. The offset is in minutes to UTC time
session
- the session instancepublic static int serverTimezoneOffset()
public static void main(String[] args)
Copyright © 2014–2018 ActFramework. All rights reserved.