我使用Restlet2.0(java)構建存摺服務器。當我發送推送通知與PushToken的APN,我從服務器日誌消息「如果 - 修改 - 因爲(空)」:存摺更新標記:if-modified-since(null)
entity.getText() : {"logs":["[2013-03-31 00:18:29 +1100] Get pass task (pass type pass.xxxxxx.freehug, serial number ABC, if-modified-since (null); with web service url http://192.168.1.43:8080/passbook/restlet) encountered error: Server response was malformed (Missing response data)"]}
這響應網址爲LoggingResource類中定義的路由器匹配(4號線),但不是SerialNumbersPassWithDeviceResource類(第2行),其限定了passUpdatedSince = {標籤}參數將被捕獲爲最新pkpass比較:
router.attach("/v1/devices/{deviceLibraryIdentifier}/registrations/{passTypeIdentifier}/{serialNumber}", DeviceRegistrationResource.class); //1/4. Registration - POST/DELETE
router.attach("/v1/devices/{deviceLibraryIdentifier}/registrations/{passTypeIdentifier}?passUpdatedSince={tag}", SerialNumbersPassWithDeviceResource.class); //2. SerialNumbers - GET
router.attach("/v1/passes/{passTypeIdentifier}/{serialNumber}", LatestVersionPassResource.class); //3. LatestVersion - GET
router.attach("/v1/log", LoggingResource.class); //5. Logging - POST
所以我在哪裏可以設置更新標籤(passUpdatedSince = {標籤} ),我怎樣才能得到它在第二行以上的路由器?我的路由器設置爲獲取更新標記是否正確?