org.eclipse.xtext.web.server.IUnwrappableServiceResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.xtext.web Show documentation
Show all versions of org.eclipse.xtext.web Show documentation
API for integrating Xtext editors in web pages.
The newest version!
/**
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.eclipse.xtext.web.server;
/**
* Service results that implement this interface are unwrapped, i.e. the content of the result object
* is sent to the client instead of a Json object.
*/
public interface IUnwrappableServiceResult extends IServiceResult {
/**
* The actual content to write into the request response.
*/
String getContent();
/**
* The content type of the text content.
*/
String getContentType();
}