Example usage for org.springframework.core.convert.converter Converter interface-usage

List of usage examples for org.springframework.core.convert.converter Converter interface-usage

Introduction

In this page you can find the example usage for org.springframework.core.convert.converter Converter interface-usage.

Usage

From source file com.eviware.loadui.impl.conversion.FileToReferenceConverter.java

public class FileToReferenceConverter implements Converter<File, Reference> {
    public final static String CHANNEL = "/" + FileToReferenceConverter.class.getName();

    public final static String START = "start";
    public final static String STOP = "stop";

From source file ren.hankai.cordwood.core.convert.StringToDateConverter.java

/**
 * ?
 *
 * @author hankai
 * @version 1.0.0
 * @since Nov 30, 2018 1:47:13 PM

From source file com.github.ljtfreitas.restify.http.spring.client.call.exec.ResponseEntityConverter.java

class ResponseEntityConverter<T> implements Converter<EndpointResponse<T>, ResponseEntity<T>> {

    @Override
    public ResponseEntity<T> convert(EndpointResponse<T> source) {
        return new ResponseEntity<T>(source.body(), headersOf(source.headers()),
                HttpStatus.valueOf(source.code().value()));

From source file org.agatom.springatom.webmvc.converters.CollectionToSizeConverter.java

/**
 * <p>CollectionToSizeConverter class.</p>
 *
 * @author kornicameister
 * @version 0.0.1
 * @since 0.0.1

From source file com.github.ljtfreitas.restify.http.spring.client.request.RequestEntityConverter.java

class RequestEntityConverter implements Converter<EndpointRequest, RequestEntity<Object>> {

    @Override
    public RequestEntity<Object> convert(EndpointRequest source) {
        Object body = source.body().orElse(null);

From source file com.github.ljtfreitas.restify.http.spring.client.request.EndpointResponseConverter.java

class EndpointResponseConverter implements Converter<ResponseEntity<Object>, EndpointResponse<Object>> {

    @Override
    public EndpointResponse<Object> convert(ResponseEntity<Object> source) {
        StatusCode status = StatusCode.of(source.getStatusCodeValue());
        Headers headers = headersOf(source.getHeaders());

From source file eionet.webq.converter.MultipartFileToUserFileConverter.java

/**
 * Performs converting from {@link MultipartFile} to {@link eionet.webq.dao.orm.UserFile}.
 *
 * @see Converter
 */
@Component

From source file eionet.webq.converter.CdrRequestConverter.java

/**
 * Converts {@link javax.servlet.http.HttpServletRequest} to {@link eionet.webq.dto.CdrRequest}.
 *
 * @see Converter
 */
@Component

From source file org.agatom.springatom.webmvc.converters.LongToDateTimeConverter.java

/**
 * <small>Class is a part of <b>SpringAtom</b> and was created at 20.03.14</small>
 *
 * @author kornicameister
 * @version 0.0.1
 * @since 0.0.1

From source file org.agatom.springatom.webmvc.converters.StringToUnixTimestampConverter.java

/**
 * <p>StringToUnixTimestampConverter class.</p>
 *
 * @author kornicameister
 * @version 0.0.1
 * @since 0.0.1