ccc.api.jaxrs.providers
Class MetadataWriter

java.lang.Object
  extended by ccc.api.jaxrs.providers.AbstractProvider
      extended by ccc.api.jaxrs.providers.MetadataWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<java.util.Map<java.lang.String,java.lang.String>>, javax.ws.rs.ext.MessageBodyWriter<java.util.Map<java.lang.String,java.lang.String>>

Deprecated.

@Provider
@Deprecated
public class MetadataWriter
extends AbstractProvider
implements javax.ws.rs.ext.MessageBodyWriter<java.util.Map<java.lang.String,java.lang.String>>, javax.ws.rs.ext.MessageBodyReader<java.util.Map<java.lang.String,java.lang.String>>

A provider for string maps.

Author:
Civic Computing Ltd.

Constructor Summary
MetadataWriter()
          Deprecated.  
 
Method Summary
 long getSize(java.util.Map<java.lang.String,java.lang.String> object, java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
          Deprecated. 
 boolean isReadable(java.lang.Class<?> arg0, java.lang.reflect.Type type, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
          Deprecated. 
 boolean isWriteable(java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
          Deprecated. 
 java.util.Map<java.lang.String,java.lang.String> readFrom(java.lang.Class<java.util.Map<java.lang.String,java.lang.String>> arg0, java.lang.reflect.Type arg1, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> arg4, java.io.InputStream arg5)
          Deprecated. 
 void writeTo(java.util.Map<java.lang.String,java.lang.String> object, java.lang.Class<?> clazz, java.lang.reflect.Type type, 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 outputStream)
          Deprecated. 
 
Methods inherited from class ccc.api.jaxrs.providers.AbstractProvider
createWriter, getTypeArgument, isCollectionOfType, isMapOfType, readJson, readString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataWriter

public MetadataWriter()
Deprecated. 
Method Detail

getSize

public long getSize(java.util.Map<java.lang.String,java.lang.String> object,
                    java.lang.Class<?> clazz,
                    java.lang.reflect.Type type,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Deprecated. 

Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.util.Map<java.lang.String,java.lang.String>>

isWriteable

public boolean isWriteable(java.lang.Class<?> clazz,
                           java.lang.reflect.Type type,
                           java.lang.annotation.Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Deprecated. 

Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.util.Map<java.lang.String,java.lang.String>>

writeTo

public void writeTo(java.util.Map<java.lang.String,java.lang.String> object,
                    java.lang.Class<?> clazz,
                    java.lang.reflect.Type type,
                    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 outputStream)
Deprecated. 

Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.util.Map<java.lang.String,java.lang.String>>

isReadable

public boolean isReadable(java.lang.Class<?> arg0,
                          java.lang.reflect.Type type,
                          java.lang.annotation.Annotation[] arg2,
                          javax.ws.rs.core.MediaType arg3)
Deprecated. 

Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.util.Map<java.lang.String,java.lang.String>>

readFrom

public java.util.Map<java.lang.String,java.lang.String> readFrom(java.lang.Class<java.util.Map<java.lang.String,java.lang.String>> arg0,
                                                                 java.lang.reflect.Type arg1,
                                                                 java.lang.annotation.Annotation[] arg2,
                                                                 javax.ws.rs.core.MediaType arg3,
                                                                 javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> arg4,
                                                                 java.io.InputStream arg5)
                                                          throws java.io.IOException
Deprecated. 

Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.util.Map<java.lang.String,java.lang.String>>
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.