public class

InternalUtil

extends Object
java.lang.Object
   ↳ org.odata4j.internal.InternalUtil

Summary

Fields
private static final DateTimeFormatter[] DATETIME_FORMATTER
private static final DateTimeFormatter[] DATETIME_PARSER
private static final Pattern DATETIME_PATTERN
Public Constructors
InternalUtil()
Public Methods
static String addSuffixSlashIfNeccesary(String url)
static String formatDateTime(LocalDateTime dateTime)
static String formatDateTimeOffset(DateTime dateTime)
static ODataVersion getDataServiceVersion(HttpHeaders httpHeaders)
static ODataVersion getDataServiceVersion(String headerValue)
static String getEntityRelId(EdmEntitySet entitySet, OEntityKey entityKey)
static String getEntityRelId(OEntity oe)
static String getEntityRelId(List<String> keyPropertyNames, List<OProperty<?>> entityProperties, String entitySetName)
static XMLEventReader2 newXMLEventReader(Reader reader)
static DateTime parseDateTime(String value)
static LocalTime parseTime(String value)
static String reflectionToString(Object obj)
static void sleep(long millis)
static <T> T toEntity(Class<T> entityType, OEntity oe)
static <T> T toPojo(Class<T> pojoClass, OEntity oe)
static String toString(LocalTime time)
static String toString(DateTime utc)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static final DateTimeFormatter[] DATETIME_FORMATTER

private static final DateTimeFormatter[] DATETIME_PARSER

private static final Pattern DATETIME_PATTERN

Public Constructors

public InternalUtil ()

Public Methods

public static String addSuffixSlashIfNeccesary (String url)

Parameters
url

public static String formatDateTime (LocalDateTime dateTime)

Parameters
dateTime

public static String formatDateTimeOffset (DateTime dateTime)

Parameters
dateTime

public static ODataVersion getDataServiceVersion (HttpHeaders httpHeaders)

Parameters
httpHeaders

public static ODataVersion getDataServiceVersion (String headerValue)

Parameters
headerValue

public static String getEntityRelId (EdmEntitySet entitySet, OEntityKey entityKey)

Parameters
entitySet
entityKey

public static String getEntityRelId (OEntity oe)

Parameters
oe

public static String getEntityRelId (List<String> keyPropertyNames, List<OProperty<?>> entityProperties, String entitySetName)

Parameters
keyPropertyNames
entityProperties
entitySetName

public static XMLEventReader2 newXMLEventReader (Reader reader)

Parameters
reader

public static DateTime parseDateTime (String value)

Parameters
value

public static LocalTime parseTime (String value)

Parameters
value

public static String reflectionToString (Object obj)

Parameters
obj

public static void sleep (long millis)

Parameters
millis

public static T toEntity (Class<T> entityType, OEntity oe)

Parameters
entityType
oe

public static T toPojo (Class<T> pojoClass, OEntity oe)

Parameters
pojoClass
oe

public static String toString (LocalTime time)

Parameters
time

public static String toString (DateTime utc)

Parameters
utc