Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.motechproject.http.agent.constants;
- public final class SendRequestConstants {
- public static final String SEND_REQUEST_SUBJECT = "SendRequest";
- public static final String URL = "URL";
- public static final String USERNAME = "Username";
- public static final String PASSWORD = "Password";
- public static final String CHECKBOX = "Checkbox";
- public static final String DATA = "Map";
- private SendRequestConstants() {
- }
- }
- ------
- task-channel.json
- {
- "displayName": "http.agent",
- "triggerTaskEvents" : [],
- "actionTaskEvents": [
- {
- "displayName": "http-agent.request",
- "subject": "SendRequest",
- "actionParameters": [
- {
- "key": "URL",
- "displayName": "http-agent.url"
- },
- {
- "key": "Username",
- "displayName": "http-agent.username"
- },
- {
- "key": "Password",
- "displayName": "http-agent.password"
- },
- {
- "key": "Checkbox",
- "displayName": "http-agent.checkbox",
- "type": "BOOLEAN"
- },
- {
- "key": "Map",
- "displayName": "http-agent.map",
- "type": "MAP"
- }
- ]}
- ]
- }
- resources/messages/messages.properties
- http.agent=HTTP-Agent
- http-agent.request=Request
- http-agent.url=URL
- http-agent.username=Username
- http-agent.password=Password
- http-agent.checkbox=Follow Redirects
- http-agent.map=Body of the post
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement