Package org.ametys.core.util
package org.ametys.core.util
-
ClassDescriptionSimple
Filter
not logging internal exceptions, such as AuthorizationRequiredException.Helper component to be used from XSL stylesheets.SLF4J Logger wrapping an AvalonLogger
.Trait for easily cache some elements, in multiple Caches if necessary.CachedValue<T>A cached value.CachingComponent<K,V> Simple memory cache with a thread clearing the cache every day.Helper to encrypt/decrypt some textException when the decrypt key has not workedHelper for converting dates from the old (Date
) to the new (java.time
) JDK Special thanks to http://stackoverflow.com/questions/21242110/convert-java-util-date-to-java-time-localdate#answer-27378709 which inspired this code See also http://stackoverflow.com/questions/19431234/converting-between-java-time-localdatetime-and-java-util-dateThis action decodes a Base64 encoded string passed through sourceUtility class for encoding file names and paths.
These methods are used to provide safe names to be stored on disk.
The encode* methods %-encode all reserved chars, plus the '%' char itself.
The filter* methods replace reserved chars with the '_' char.
Reserved chars areAction which gets and returns a parent context attribute value.Utility class for HTTP urls.The status of HTTP checkRepresent the result of a check and a potential messageSerializer forI18nizable
objects.Sort I18nizableText with their translationSort I18nizableText with their keyUtils for i18nClass representing an i18n location"Proxy" handler ignoring startDocument() and endDocument() callsHelper for manipulating images.This component centralize the access to zip files Beware: All opened zip files are kept opened in memoryJSON helperHelper for lambda expressions.Some usefulbiPredicates
Some usefulcollectors
Runtime exception wrapping the exception thrown from the lambdaConsumer allowed to throw checkedException
.Function allowed to throw checkedException
.Predicate allowed to throw checkedException
.Serializer forLocalDate
.Utility methods forMap
sHelper to read XML dataHelper to get JS parameters from requestHelper for manipulating objects heap size.Fields annotated withSizeUtils.ExcludeFromSizeCalculation
are excluded for size calculationA collection of String management utility methods.Component that centralizes and provides the system statusUtility class for encoding and decoding URL, following the RFC 3986Enumerator
for listing days of the week.Component with XML utils methodsSerializer forZonedDateTime
.