org.apache.stanbol.entityhub.jersey.utils
Class MessageBodyReaderUtils.RequestData

java.lang.Object
  extended by org.apache.stanbol.entityhub.jersey.utils.MessageBodyReaderUtils.RequestData
Enclosing class:
MessageBodyReaderUtils

public static class MessageBodyReaderUtils.RequestData
extends Object

Simple class that holds the MediaType, Name and the content as InputStream.

Author:
Rupert Westenthaler

Constructor Summary
MessageBodyReaderUtils.RequestData(javax.ws.rs.core.MediaType mediaType, String contentName, InputStream entityStream)
           
 
Method Summary
 InputStream getEntityStream()
          The stream with the data
 javax.ws.rs.core.MediaType getMediaType()
          The media type or null if not known
 String getName()
          The name of the content (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageBodyReaderUtils.RequestData

public MessageBodyReaderUtils.RequestData(javax.ws.rs.core.MediaType mediaType,
                                          String contentName,
                                          InputStream entityStream)
Method Detail

getMediaType

public javax.ws.rs.core.MediaType getMediaType()
The media type or null if not known

Returns:
the mediaType

getEntityStream

public InputStream getEntityStream()
The stream with the data

Returns:
the entityStream

getName

public String getName()
The name of the content (e.g. the parameter used to parse the content or the filename provided by the BodyPart) or null if not present. The documentation of methods returning instances of this class should document what is used as name.

Returns:
the contentName


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