public ApiInfoImpl(org.eclipse.che.api.core.rest.shared.dto.ApiInfo origin) { this.specificationTitle = origin.getSpecificationTitle(); this.scmRevision = origin.getScmRevision(); this.ideVersion = origin.getIdeVersion(); this.specificationVersion = origin.getSpecificationVersion(); this.implementationVendor = origin.getImplementationVendor(); this.specificationVendor = origin.getSpecificationVendor(); this.implementationVersion = origin.getImplementationVersion(); }
public ApiException(ServiceError serviceError) { super(serviceError.getMessage()); this.serviceError = serviceError; }
public org.eclipse.che.api.core.rest.shared.dto.LinkParameter getParameter(java.lang.String $p0) { return org.eclipse.che.api.core.rest.shared.dto.Link.LinkParameterResolver.getParameter(this, $p0); }
public UnauthorizedException(String message, int errorCode, Map<String, String> attributes) { super( newDto(ExtendedError.class) .withMessage(message) .withErrorCode(errorCode) .withAttributes(attributes)); }
public static Link createLink( String method, String href, String consumes, String produces, String rel) { return DtoFactory.getInstance() .createDto(Link.class) .withMethod(method) .withHref(href) .withConsumes(consumes) .withProduces(produces) .withRel(rel); }
public static Link createLink( String method, String href, String rel, List<LinkParameter> params) { return DtoFactory.getInstance() .createDto(Link.class) .withMethod(method) .withHref(href) .withRel(rel) .withParameters(params); }
public static Link createLink(String method, String href, String rel) { return DtoFactory.getInstance() .createDto(Link.class) .withMethod(method) .withHref(href) .withRel(rel); }
public static LinkParameter getParameter(Link link, String parameterName) { for (LinkParameter linkParameter : link.getParameters()) { if (linkParameter.getName().equals(parameterName)) { return linkParameter; } } return null; } }
private ServiceError createError(String message) { return DtoFactory.getInstance().createDto(ServiceError.class).withMessage(message); } }
public static Link getLink(Hyperlinks links, String rel) { return getLink(rel, links.getLinks()); }
public RequestBodyDescriptorImpl(org.eclipse.che.api.core.rest.shared.dto.RequestBodyDescriptor origin) { this.description = origin.getDescription(); }
/** * Find first link in the specified list by its relation. * * @param rel link's relation * @param links list of links * @return found link or {@code null} */ public static Link getLink(String rel, List<Link> links) { for (Link link : links) { if (rel.equals(link.getRel())) { return link; } } return null; }
public Link getLink(String rel) throws ServerException, IOException { final Link link = getServiceDescriptor().getLink(rel); return link == null ? null : DtoFactory.getInstance().clone(link); }
public LimitExceededException(String message, Map<String, String> attributes) { super( DtoFactory.newDto(ExtendedError.class) .withMessage(message) .withAttributes(attributes) .withErrorCode(ErrorCodes.LIMIT_EXCEEDED)); } }
public static Link createLink(String method, String href, String produces, String rel) { return DtoFactory.getInstance() .createDto(Link.class) .withMethod(method) .withHref(href) .withProduces(produces) .withRel(rel); }
public ServiceErrorImpl(org.eclipse.che.api.core.rest.shared.dto.ServiceError origin) { this.message = origin.getMessage(); }
public static List<Link> getLinks(Hyperlinks links, String rel) { return getLinks(rel, links.getLinks()); }
public GitException(String message, int errorCode, Map<String, String> attributes) { super( newDto(ExtendedError.class) .withMessage(message) .withErrorCode(errorCode) .withAttributes(attributes)); }
public static Link createLink( String method, String href, String consumes, String produces, String rel, List<LinkParameter> params) { return DtoFactory.getInstance() .createDto(Link.class) .withMethod(method) .withHref(href) .withConsumes(consumes) .withProduces(produces) .withRel(rel) .withParameters(params); }