Package org.zanata.service.impl

Examples of org.zanata.service.impl.VersionManager


                    throws Failure, WebApplicationException {
        String clientApiVer =
                request.getHttpHeaders().getRequestHeaders()
                        .getFirst(RestConstant.HEADER_VERSION_NO);
        String serverApiVer = VersionUtility.getAPIVersionInfo().getVersionNo();
        VersionManager verManager =
                ServiceLocator.instance().getInstance(VersionManager.class);

        return verManager.checkVersion(clientApiVer, serverApiVer) ? null
                : ServerResponse
                        .copyIfNotServerResponse(Response
                                .status(Status.PRECONDITION_FAILED)
                                .entity("Client API Version '"
                                        + clientApiVer
View Full Code Here

TOP

Related Classes of org.zanata.service.impl.VersionManager

Copyright © 2018 www.massapicom. 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.