Class GenericArtifactMessageBodyWriter

java.lang.Object
org.wso2.carbon.governance.rest.api.internal.GenericArtifactMessageBodyWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<TypedList<org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact>>

@Provider public class GenericArtifactMessageBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<TypedList<org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact>>
  • Constructor Details

    • GenericArtifactMessageBodyWriter

      public GenericArtifactMessageBodyWriter()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<TypedList<org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact>>
    • getSize

      public long getSize(TypedList<org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact> typedList, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface javax.ws.rs.ext.MessageBodyWriter<TypedList<org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact>>
    • writeTo

      public void writeTo(TypedList<org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact> typedList, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface javax.ws.rs.ext.MessageBodyWriter<TypedList<org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact>>
      Throws:
      IOException
      javax.ws.rs.WebApplicationException