ccc.api.jaxrs.providers
Class BooleanProvider

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

Deprecated.

@Provider
@Deprecated
public class BooleanProvider
extends AbstractProvider
implements javax.ws.rs.ext.MessageBodyReader<java.lang.Boolean>, javax.ws.rs.ext.MessageBodyWriter<java.lang.Boolean>

A JAX-RS provider for boolean values.

Author:
Civic Computing Ltd.

Constructor Summary
BooleanProvider()
          Deprecated.  
 
Method Summary
 long getSize(java.lang.Boolean arg0, java.lang.Class<?> arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
          Deprecated. 
 boolean isReadable(java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
          Deprecated. 
 boolean isWriteable(java.lang.Class<?> clazz, java.lang.reflect.Type arg1, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
          Deprecated. 
 java.lang.Boolean readFrom(java.lang.Class<java.lang.Boolean> 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.lang.Boolean arg0, java.lang.Class<?> arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> arg5, 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

BooleanProvider

public BooleanProvider()
Deprecated. 
Method Detail

isReadable

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

Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Boolean>

readFrom

public java.lang.Boolean readFrom(java.lang.Class<java.lang.Boolean> 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.lang.Boolean>
Throws:
java.io.IOException

getSize

public long getSize(java.lang.Boolean arg0,
                    java.lang.Class<?> arg1,
                    java.lang.reflect.Type arg2,
                    java.lang.annotation.Annotation[] arg3,
                    javax.ws.rs.core.MediaType arg4)
Deprecated. 

Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Boolean>

isWriteable

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

Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Boolean>

writeTo

public void writeTo(java.lang.Boolean arg0,
                    java.lang.Class<?> arg1,
                    java.lang.reflect.Type arg2,
                    java.lang.annotation.Annotation[] arg3,
                    javax.ws.rs.core.MediaType arg4,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> arg5,
                    java.io.OutputStream outputStream)
Deprecated. 

Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Boolean>


Copyright © 2010. All Rights Reserved.