Skip to content

Instantly share code, notes, and snippets.

@jjungnickel
Created March 16, 2010 14:54
Show Gist options
  • Save jjungnickel/334046 to your computer and use it in GitHub Desktop.
Save jjungnickel/334046 to your computer and use it in GitHub Desktop.
/*
* Copyright (c) 2004 - 2010 carmunity.com GmbH
*
* Verbreitung und Verwendung nur mit ausdrücklicher Genehmigung des Urhebers. In
* Einzelfällen abweichende Urheber sind vermerkt.
*/
package de.carmunity.quickpage.callbacks.mira;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* MVC Controller für Messaging-Callbacks und Deliveries von Mira.
*
* @author <a href="mailto:jj@displayboy.com">Jan Jungnickel</a>
*/
@Controller
public class MiraMessagingController {
@RequestMapping(value = "/mira/mo-inbound", method = RequestMethod.GET)
// msisdn=27842078212&from=27840031788&network=3&msg=Test%20mira&REF=1268732825866823
public void deliverMoMessage(
@RequestParam("msisdn") String msisdn,
@RequestParam("from") String from,
@RequestParam("network") Integer network,
@RequestParam("msg") String message,
@RequestParam("REF") String referenceId) {
log.info(String.format("Received request for mo delivery: msisdn=%s, from=%s, network=%d, msg=%s, ref=%s", msisdn, from, network, message, referenceId));
}
private final Log log = LogFactory.getLog(getClass());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment