com.helpmobile.rest.mapper.RestObjectMapper.java Source code

Java tutorial

Introduction

Here is the source code for com.helpmobile.rest.mapper.RestObjectMapper.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.helpmobile.rest.mapper;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer;
import com.fasterxml.jackson.databind.module.SimpleModule;
import java.io.IOException;

/**
 *
 * @author terra
 */
public class RestObjectMapper extends ObjectMapper {

    public RestObjectMapper() {
        registerModule(new TrimModule());
    }
}