Class SelectedDeploymentJsonReaderWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>, javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>

    @Component
    @Provider
    @Consumes("application/json")
    @Produces("application/json")
    public class SelectedDeploymentJsonReaderWriter
    extends java.lang.Object
    implements javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>, javax.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getSize​(com.xebialabs.deployit.engine.api.dto.SelectedDeployment deployment, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)  
      boolean isReadable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)  
      boolean isWriteable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)  
      com.xebialabs.deployit.engine.api.dto.SelectedDeployment readFrom​(java.lang.Class<com.xebialabs.deployit.engine.api.dto.SelectedDeployment> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> httpHeaders, java.io.InputStream entityStream)  
      java.lang.String toString​(java.io.InputStream in)  
      void writeTo​(com.xebialabs.deployit.engine.api.dto.SelectedDeployment deployment, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> httpHeaders, java.io.OutputStream entityStream)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SelectedDeploymentJsonReaderWriter

        @Autowired
        public SelectedDeploymentJsonReaderWriter​(ReaderPostProcessor postProcessor)
    • Method Detail

      • isWriteable

        public boolean isWriteable​(java.lang.Class<?> type,
                                   java.lang.reflect.Type genericType,
                                   java.lang.annotation.Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
      • isReadable

        public boolean isReadable​(java.lang.Class<?> type,
                                  java.lang.reflect.Type genericType,
                                  java.lang.annotation.Annotation[] annotations,
                                  javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
      • getSize

        public long getSize​(com.xebialabs.deployit.engine.api.dto.SelectedDeployment deployment,
                            java.lang.Class<?> type,
                            java.lang.reflect.Type genericType,
                            java.lang.annotation.Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
      • writeTo

        public void writeTo​(com.xebialabs.deployit.engine.api.dto.SelectedDeployment deployment,
                            java.lang.Class<?> type,
                            java.lang.reflect.Type genericType,
                            java.lang.annotation.Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType,
                            javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> httpHeaders,
                            java.io.OutputStream entityStream)
                     throws java.io.IOException,
                            javax.ws.rs.WebApplicationException
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
        Throws:
        java.io.IOException
        javax.ws.rs.WebApplicationException
      • readFrom

        public com.xebialabs.deployit.engine.api.dto.SelectedDeployment readFrom​(java.lang.Class<com.xebialabs.deployit.engine.api.dto.SelectedDeployment> type,
                                                                                 java.lang.reflect.Type genericType,
                                                                                 java.lang.annotation.Annotation[] annotations,
                                                                                 javax.ws.rs.core.MediaType mediaType,
                                                                                 javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> httpHeaders,
                                                                                 java.io.InputStream entityStream)
                                                                          throws java.io.IOException,
                                                                                 javax.ws.rs.WebApplicationException
        Specified by:
        readFrom in interface javax.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
        Throws:
        java.io.IOException
        javax.ws.rs.WebApplicationException
      • toString

        public java.lang.String toString​(java.io.InputStream in)
                                  throws java.io.IOException
        Throws:
        java.io.IOException