
com.voxeo.tropo.actions.HeadersAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tropo-webapi-java Show documentation
Show all versions of tropo-webapi-java Show documentation
WebApi Java implementation for the Tropo Cloud platform
The newest version!
package com.voxeo.tropo.actions;
import com.voxeo.tropo.Key;
import com.voxeo.tropo.annotations.ValidKeys;
@ValidKeys(keys={})
public class HeadersAction extends JsonAction {
public HeadersAction(String[]... headers) {
super();
setName("headers");
Key[] keys = new Key[headers.length];
int i =0;
for(String[] header: headers) {
if (header.length >= 2) {
Key key = Key.createKey(header[0], header[1]);
keys[i] = key;
}
i++;
}
addKeys(keys);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy