@HTTPService(name="tjrb") public class BackendService extends java.lang.Object
Constructor and Description |
---|
BackendService() |
Modifier and Type | Method and Description |
---|---|
void |
addTask(InputStreamParameter xml)
The request is to be sent in the body of POST method.
|
public BackendService()
@HTTPServiceMethod(name="addTask", acceptedMethods="POST") public void addTask(@HTTPMethodParameter(name="body",bodyParameter=true) InputStreamParameter xml)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <taskDetails> <backendId>1534524971</backendId> <taskId>3029849295917731406</taskId> <taskType>TWITTER_PROFILE_SUMMARIZATION</taskType> <callbackUri>http://fe.example.org/rest/tjrs/taskFinished</callbackUri> <userId>7189019665277335690</userId> <profile> <userDetails> <bio>DmkbtcVrwfYewTpkgIhqLVGzFIZnAzitaPidxRdNpyqminftNXnpUToMOLuNmDGo</bio> <favoritesCount>1648541842</favoritesCount> <friendsCount>819260455</friendsCount> <followersCount>1273690525</followersCount> <name>yECzGImEvAmaPLOVJTBSIJeyCjJLelaxvSVELVtkgLmcRBsfiTivkTVdBOYmrdaY</name> <screenName>fcBOSFiWZraUhUFrqePccOSOjDDRafeIwGAVGjREnGfrEipRgXZHmYZaCuGrLvYM</screenName> <twitterId>7246956690859166637</twitterId> <location> <name>JasfJSQEHtmpCzdspPYAwflOzgMDjftxQHefUnACqsCEbgXhmokaYbkYRloHIQqm</name> <latitude>88.0</latitude> <longitude>29.0</longitude> </location> <userId>3188602475613259210</userId> </userDetails> <statusMessageList> <statusMessage> <from>xPIqOExTGWTdscfYYeeQujQfMcJTMGwJZTJURJqNwIBRqgdbmIDrZtvIhpbXDuqt</from> <message>#sx2 #U4UbLjQKh #zY8T #9GuJxWZdU #PfvmVQCz qpxe #DVBfyy5aY MeL51h5L #mmguDex 5lhR Fx3Gj #i1e8jGU7n #6E0wBGfNQ #COevmc #FlCmiMS 195HCb QNXfF</message> <updatedTimestamp>1997-07-03T17:05:41+0300</updatedTimestamp> </statusMessage> </statusMessageList> <photoDescriptionList> <photoDescription> <createdTimestamp>1991-06-27T09:32:29+0300</createdTimestamp> <description>#XWug #fQMQmj8 U6Q9kgUCw #UFZg34 #dNcl #UwcVGrMz HGUNs #mee 2tLV #77kowHxN #VjGXcM #WFEl8fYk9 #DXfU #okliq DusM IQ9zhwc #D0coMC gDR3zT #wRA</description> <from>mPrZiMpFDpvGNpQmZdjmOJJxaEUrAICposOJJCYjcleHrgUbnwxUybBldMqrOiNe</from> <location> <name>uopALkGcGyxmLZdnVoLymLqnxqIGjhSSPtPjxVXbunkFkFCLXMSNvviZrrCvxtmn</name> <latitude>-46.0</latitude> <longitude>78.0</longitude> </location> <photoUID>ececcffe-c876-4f5a-84f2-bd9c3d977f72</photoUID> <serviceId>6</serviceId> <photoTagList> <photoTag> <serviceId>6</serviceId> <value>PSyoodBsKFyAyvukpSiopNkqezJZhEaKoPNspGicsKCBvmWlaUTiUygVqMgFBWMh</value> </photoTag> </photoTagList> </photoDescription> </photoDescriptionList> <videoDescriptionList> <videoDescription> <createdTimestamp>1991-05-30T14:53:17+0300</createdTimestamp> <location> <name>RtiiyCiaJkWOtEUZMmHVAFXROyxzPfOoTQdxqNMMsDCVuRwReRRkhfqdTjrpgXAU</name> <latitude>-49.0</latitude> <longitude>-85.0</longitude> </location> <description>#fhaJn Kl9Q T0x5S #tQtr MNXhONsk #xJAPj #yTHsvGV zev #YuqhbP4 JhyHv #E1qGbxoTT xTZe Yk6 #bgLg6B6w #Txq #SnPRlul N1tpZQ #1fq59tQU #5F82</description> <from>BOVlHsrgOTPDGtmljwuoHZdlcWVerGaCJisIlAZWMrZBnbjzYrYRzwFDpNOOtzLz</from> </videoDescription> </videoDescriptionList> </profile> <callbackUri>http://fe.example.org/rest/tjrs/taskFinished</callbackUri> </taskDetails>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <response method="addTask" service="tjrb"> <status>OK</status> </response>
xml
- The HTTP body. Only the workload data should be in the body. See TwitterTaskDetails
Copyright © 2015 Tampere University of Technology, Pori Department.