All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.lsqlebai.utils.UrlJsonDeSerializer.kt Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
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