Advertisement
Guest User

Untitled

a guest
Jun 13th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. package org.motechproject.http.agent.constants;
  2.  
  3. public final class SendRequestConstants {
  4. public static final String SEND_REQUEST_SUBJECT = "SendRequest";
  5. public static final String URL = "URL";
  6. public static final String USERNAME = "Username";
  7. public static final String PASSWORD = "Password";
  8. public static final String CHECKBOX = "Checkbox";
  9. public static final String DATA = "Map";
  10.  
  11. private SendRequestConstants() {
  12.  
  13. }
  14. }
  15.  
  16.  
  17. ------
  18.  
  19. task-channel.json
  20.  
  21. {
  22. "displayName": "http.agent",
  23. "triggerTaskEvents" : [],
  24. "actionTaskEvents": [
  25. {
  26. "displayName": "http-agent.request",
  27. "subject": "SendRequest",
  28. "actionParameters": [
  29. {
  30. "key": "URL",
  31. "displayName": "http-agent.url"
  32. },
  33. {
  34. "key": "Username",
  35. "displayName": "http-agent.username"
  36. },
  37. {
  38. "key": "Password",
  39. "displayName": "http-agent.password"
  40. },
  41. {
  42. "key": "Checkbox",
  43. "displayName": "http-agent.checkbox",
  44. "type": "BOOLEAN"
  45. },
  46. {
  47. "key": "Map",
  48. "displayName": "http-agent.map",
  49. "type": "MAP"
  50. }
  51. ]}
  52. ]
  53. }
  54.  
  55. resources/messages/messages.properties
  56.  
  57. http.agent=HTTP-Agent
  58. http-agent.request=Request
  59. http-agent.url=URL
  60. http-agent.username=Username
  61. http-agent.password=Password
  62. http-agent.checkbox=Follow Redirects
  63. http-agent.map=Body of the post
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement