Class AbstractOslcRdfXmlProvider

java.lang.Object
org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider
Direct Known Subclasses:
OslcCompactRdfProvider, OslcRdfXmlArrayProvider, OslcRdfXmlCollectionProvider, OslcRdfXmlProvider

public abstract class AbstractOslcRdfXmlProvider extends Object
Author:
Russell Boykin, Alberto Giammaria, Chris Peters, Gianluca Bernardini, Andrew Berezovskyi
  • Field Details

    • OSLC4J_ALWAYS_XML_ABBREV

      @Deprecated public static final String OSLC4J_ALWAYS_XML_ABBREV
      Deprecated.
      System property "org.eclipse.lyo.oslc4j.alwaysXMLAbbrev" : When "true", always abbreviate RDF/XML, even when asked for application/rdf+xml. Otherwise, abbreviated RDF/XML is only returned when application/xml is requested. Does not affect text/turtle responses.
      See Also:
    • OSLC4J_STRICT_DATATYPES

      @Deprecated public static final String OSLC4J_STRICT_DATATYPES
      Deprecated.
      System property "org.eclipse.lyo.oslc4j.strictDatatypes" : When "true" (default), fail on when reading a property value that is not a legal instance of a datatype. When "false", skip over invalid values in extended properties.
      See Also:
    • httpServletRequest

      @Context protected jakarta.servlet.http.HttpServletRequest httpServletRequest
  • Constructor Details

    • AbstractOslcRdfXmlProvider

      protected AbstractOslcRdfXmlProvider()
  • Method Details

    • writeTo

      protected void writeTo(Object[] objects, jakarta.ws.rs.core.MediaType baseMediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> map, OutputStream outputStream, Map<String,Object> properties, String descriptionURI, String responseInfoURI, ResponseInfo<?> responseInfo) throws jakarta.ws.rs.WebApplicationException
      Throws:
      jakarta.ws.rs.WebApplicationException
    • writeTo

      protected void writeTo(boolean queryResult, Object[] objects, jakarta.ws.rs.core.MediaType baseMediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> map, OutputStream outputStream) throws jakarta.ws.rs.WebApplicationException
      Throws:
      jakarta.ws.rs.WebApplicationException
    • readFrom

      protected Object[] readFrom(Class<?> type, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> map, InputStream inputStream) throws jakarta.ws.rs.WebApplicationException
      Throws:
      jakarta.ws.rs.WebApplicationException
    • buildBadRequestResponse

      protected jakarta.ws.rs.core.Response buildBadRequestResponse(Exception exception, jakarta.ws.rs.core.MediaType initialErrorMediaType, jakarta.ws.rs.core.MultivaluedMap<String,?> map)