org.apache.stanbol.entityhub.jersey.writers
Class SignWriter

java.lang.Object
  extended by org.apache.stanbol.entityhub.jersey.writers.SignWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Entity>

@Provider
public class SignWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<Entity>

TODO: Replace with Serializer infrastrucutre similar to Serializer

Author:
Rupert Westenthaler

Field Summary
static java.lang.String DEFAULT_ENCODING
           
protected  javax.servlet.ServletContext servletContext
           
static java.util.Set<java.lang.String> supportedMediaTypes
           
 
Constructor Summary
SignWriter()
           
 
Method Summary
protected  org.apache.clerezza.rdf.core.serializedform.Serializer getSerializer()
           
 long getSize(Entity sign, 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)
           
 void writeTo(Entity sign, 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
 

Field Detail

supportedMediaTypes

public static final java.util.Set<java.lang.String> supportedMediaTypes

DEFAULT_ENCODING

public static final java.lang.String DEFAULT_ENCODING
See Also:
Constant Field Values

servletContext

@Context
protected javax.servlet.ServletContext servletContext
Constructor Detail

SignWriter

public SignWriter()
Method Detail

getSerializer

protected org.apache.clerezza.rdf.core.serializedform.Serializer getSerializer()

getSize

public long getSize(Entity sign,
                    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<Entity>

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<Entity>

writeTo

public void writeTo(Entity sign,
                    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<Entity>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.