org.openrdf.http.object.model
Class ResponseEntity
java.lang.Object
org.openrdf.http.object.model.ResponseEntity
- All Implemented Interfaces:
- Entity
public class ResponseEntity
- extends Object
- implements Entity
Wraps a message response to output to an HTTP response.
ResponseEntity
public ResponseEntity(String[] mimeTypes,
Object result,
Class<?> type,
Type genericType,
String base,
ObjectConnection con)
toString
public String toString()
- Overrides:
toString in class Object
getEntity
public Object getEntity()
getReadableTypes
public Collection<? extends MimeType> getReadableTypes(Class<?> type,
Type genericType,
Accepter accepter)
throws MimeTypeParseException
- Specified by:
getReadableTypes in interface Entity
- Throws:
MimeTypeParseException
read
public <T> T read(Class<T> type,
Type genericType,
String[] mediaTypes)
throws OpenRDFException,
TransformerConfigurationException,
IOException,
XMLStreamException,
ParserConfigurationException,
SAXException,
TransformerException,
MimeTypeParseException
- Specified by:
read in interface Entity
- Throws:
OpenRDFException
TransformerConfigurationException
IOException
XMLStreamException
ParserConfigurationException
SAXException
TransformerException
MimeTypeParseException
isNoContent
public boolean isNoContent()
getLocations
public Set<String> getLocations()
getSize
public long getSize(String mimeType,
Charset charset)
write
public ReadableByteChannel write(String mimeType,
Charset charset)
throws IOException,
OpenRDFException,
XMLStreamException,
TransformerException,
ParserConfigurationException
- Throws:
IOException
OpenRDFException
XMLStreamException
TransformerException
ParserConfigurationException
Copyright © 2004-2010 James Leigh Services Inc.. All Rights Reserved.