com.github.lsqlebai.utils.UrlJsonDeSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-common Show documentation
Show all versions of server-common Show documentation
An kotlin server common jar
package com.github.lsqlebai.utils
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JsonDeserializer
import com.github.lsqlebai.ServerConfig
class UrlJsonDeSerializer : JsonDeserializer() {
override fun deserialize(parser: JsonParser, context: DeserializationContext): String {
return parser.getValueAsString(parser.currentName).removePrefix("${ServerConfig.getStaticURL()}/")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy