Class AssetStateMessageBodyWriter
java.lang.Object
org.wso2.carbon.governance.rest.api.internal.AssetStateMessageBodyWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<AssetState>
@Provider
public class AssetStateMessageBodyWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<AssetState>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(AssetState assetState, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) voidwriteTo(AssetState assetState, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Field Details
-
INDENT
- See Also:
-
STATE
- See Also:
-
-
Constructor Details
-
AssetStateMessageBodyWriter
public AssetStateMessageBodyWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<AssetState>
-
getSize
public long getSize(AssetState assetState, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<AssetState>
-
writeTo
public void writeTo(AssetState assetState, 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:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<AssetState>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-