Examples of IWritableRepresentation


Examples of com.semagia.atomico.dm.IWritableRepresentation

     * @throws UnsupportedMediaTypeException
     */
    @GET
    public Response getFragments(@Context HttpHeaders headers) throws StorageException, UnsupportedMediaTypeException {
        final Response.ResponseBuilder builder = makeResponseBuilder();
        final IWritableRepresentation writable =
                _feedFactory.createFragmentsFeed(getBaseURI(),
                        getStorage(), getConfiguration(), _lastModification,
                        _collInfo, MediaTypeUtils.toAtomicoMediaType(headers.getAcceptableMediaTypes()));
        return ResponseUtils.buildStreamingEntity(builder, writable);
    }
View Full Code Here

Examples of com.semagia.atomico.dm.IWritableRepresentation

    @GET
    @Produces("*/*")
    public Response getSnapshots(@Context HttpHeaders headers) throws StorageException, UnsupportedMediaTypeException {
        final Response.ResponseBuilder builder = makeResponseBuilder();
        final IWritableRepresentation writable =
            _feedFactory.createSnapshotsFeed(getBaseURI(),
                    getStorage(), getConfiguration(), _lastModification,
                    _collInfo, MediaTypeUtils.toAtomicoMediaType(headers.getAcceptableMediaTypes()));
        return ResponseUtils.buildStreamingEntity(builder, writable);
    }
View Full Code Here

Examples of com.semagia.atomico.dm.IWritableRepresentation

     * @throws UnsupportedMediaTypeException
     */
    @GET
    public Response getCollection(@Context HttpHeaders headers) throws StorageException, UnsupportedMediaTypeException {
        final ResponseBuilder builder = makeResponseBuilder();
        final IWritableRepresentation writable = _feedFactory.createCollectionFeed(
                getBaseURI(), getStorage(), getConfiguration(),
                _collInfo,
                MediaTypeUtils.toAtomicoMediaType(headers.getAcceptableMediaTypes()));
        return ResponseUtils.buildStreamingEntity(builder, writable);
    }
View Full Code Here

Examples of com.semagia.atomico.dm.IWritableRepresentation

     */
    @GET
    @Produces("*/*")
    public Response getOverview(@Context HttpHeaders headers) throws StorageException, UnsupportedMediaTypeException {
        final Response.ResponseBuilder builder = makeResponseBuilder();
        final IWritableRepresentation writable = _feedFactory.createOverviewFeed(
                getBaseURI(), getStorage(), getConfiguration(),
                _lastModification, MediaTypeUtils.toAtomicoMediaType(headers.getAcceptableMediaTypes()));
        return ResponseUtils.buildStreamingEntity(builder, writable);
    }
View Full Code Here

Examples of com.semagia.atomico.dm.IWritableRepresentation

    /* (non-Javadoc)
     * @see org.restlet.resource.ServerResource#get(org.restlet.representation.Variant)
     */
    @Override
    public Representation get(Variant variant) throws ResourceException {
        IWritableRepresentation tm = null;
        try {
            tm = _storage.getFragment(_collInfo.getCollectionId(),
                    _fragmentInfo.getFragmentId(), MediaTypeUtils
                            .toAtomicoMediaType(variant.getMediaType()));
        }
View Full Code Here

Examples of com.semagia.atomico.dm.IWritableRepresentation

    @Override
    public Representation get(Variant variant) throws ResourceException {
        if (!isExisting()) {
            throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND);
        }
        IWritableRepresentation tm = null;
        try {
            tm = _storage.getSnapshot(_collInfo.getCollectionId(),
                                      _snapshotInfo.getSnapshotId(),
                                      MediaTypeUtils.toAtomicoMediaType(variant.getMediaType()));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.