@Provider public class T2FlowDocumentHandler extends Object implements javax.ws.rs.ext.MessageBodyReader<Workflow>, javax.ws.rs.ext.MessageBodyWriter<Workflow>
Modifier and Type | Field and Description |
---|---|
static String |
T2FLOW |
static String |
T2FLOW_NS |
static String |
T2FLOW_ROOTNAME |
Constructor and Description |
---|
T2FlowDocumentHandler() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(Workflow workflow,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
Workflow |
readFrom(Class<Workflow> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(Workflow workflow,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public static final String T2FLOW
public static final String T2FLOW_ROOTNAME
public static final String T2FLOW_NS
public T2FlowDocumentHandler() throws ParserConfigurationException, TransformerConfigurationException
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<Workflow>
public Workflow readFrom(Class<Workflow> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<Workflow>
IOException
javax.ws.rs.WebApplicationException
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Workflow>
public long getSize(Workflow workflow, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<Workflow>
public void writeTo(Workflow workflow, 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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<Workflow>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.