com.github.bjuvensjo.rsimulator.http.config.HttpModule Maven / Gradle / Ivy
package com.github.bjuvensjo.rsimulator.http.config;
import com.google.inject.AbstractModule;
import com.google.inject.TypeLiteral;
import com.google.inject.name.Names;
import java.util.HashMap;
import java.util.Map;
/**
* CoreModule holds Guice configurations.
*/
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