com.github.bjuvensjo.rsimulator.http.config.HttpModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rsimulator-http Show documentation
Show all versions of rsimulator-http Show documentation
${project.artifactId} module
package com.github.bjuvensjo.rsimulator.http.config;
import java.util.HashMap;
import java.util.Map;
import com.google.inject.AbstractModule;
import com.google.inject.TypeLiteral;
import com.google.inject.name.Names;
/**
* CoreModule holds Guice configurations.
*
* @author Magnus Bjuvensjö
*/
public class HttpModule extends AbstractModule {
/*
* (non-Javadoc)
*
* @see com.google.inject.AbstractModule#configure()
*/
@Override
protected void configure() {
// ***** Simulator content types *****
Map simulatorContentTypes = new HashMap();
simulatorContentTypes.put("application/json", "json");
simulatorContentTypes.put("application/xml", "xml");
simulatorContentTypes.put("application/soap+xml", "xml");
simulatorContentTypes.put("text/xml", "xml");
simulatorContentTypes.put("default", "txt");
bind(new TypeLiteral
© 2015 - 2025 Weber Informatics LLC | Privacy Policy