Created
March 16, 2010 14:54
-
-
Save jjungnickel/334046 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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