Class BannerInfoJsonReaderWriter
java.lang.Object
com.xebialabs.deployit.core.rest.json.BannerInfoJsonReaderWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<ai.digital.deploy.sql.model.BannerInfo>,jakarta.ws.rs.ext.MessageBodyWriter<ai.digital.deploy.sql.model.BannerInfo>
@Component
@Provider
@Consumes("application/json")
@Produces("application/json")
public class BannerInfoJsonReaderWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<ai.digital.deploy.sql.model.BannerInfo>, jakarta.ws.rs.ext.MessageBodyReader<ai.digital.deploy.sql.model.BannerInfo>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(ai.digital.deploy.sql.model.BannerInfo bannerInfo, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) ai.digital.deploy.sql.model.BannerInforeadFrom(Class<ai.digital.deploy.sql.model.BannerInfo> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) voidwriteTo(ai.digital.deploy.sql.model.BannerInfo bannerInfo, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
BannerInfoJsonReaderWriter
@Autowired public BannerInfoJsonReaderWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<ai.digital.deploy.sql.model.BannerInfo>
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadablein interfacejakarta.ws.rs.ext.MessageBodyReader<ai.digital.deploy.sql.model.BannerInfo>
-
getSize
public long getSize(ai.digital.deploy.sql.model.BannerInfo bannerInfo, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<ai.digital.deploy.sql.model.BannerInfo>
-
writeTo
public void writeTo(ai.digital.deploy.sql.model.BannerInfo bannerInfo, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<ai.digital.deploy.sql.model.BannerInfo>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
readFrom
public ai.digital.deploy.sql.model.BannerInfo readFrom(Class<ai.digital.deploy.sql.model.BannerInfo> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<ai.digital.deploy.sql.model.BannerInfo>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-