Repository: camel Updated Branches: refs/heads/camel-2.16.x f8c8bdcd9 -> 1febbd6a7
Component docs Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/1febbd6a Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/1febbd6a Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/1febbd6a Branch: refs/heads/camel-2.16.x Commit: 1febbd6a7969f17cc54e7869beeb54c4d134e8ac Parents: f8c8bdc Author: Claus Ibsen <davscl...@apache.org> Authored: Sat Jan 9 16:37:24 2016 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sun Jan 10 10:33:29 2016 +0100 ---------------------------------------------------------------------- .../apache/camel/component/linkedin/LinkedInConfiguration.java | 6 +++--- .../org/apache/camel/component/linkedin/LinkedInEndpoint.java | 3 ++- .../component/linkedin/CommentsResourceIntegrationTest.java | 2 +- .../component/linkedin/CompaniesResourceIntegrationTest.java | 2 +- .../linkedin/ComponentConfigurationIntegrationTest.java | 2 +- .../component/linkedin/GroupsResourceIntegrationTest.java | 2 +- .../camel/component/linkedin/JobsResourceIntegrationTest.java | 2 +- .../component/linkedin/PeopleResourceIntegrationTest.java | 2 +- .../camel/component/linkedin/PostsResourceIntegrationTest.java | 2 +- .../component/linkedin/SearchResourceIntegrationTest.java | 2 +- 10 files changed, 13 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInConfiguration.java b/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInConfiguration.java index 83560cb..26fc1b8 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInConfiguration.java +++ b/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInConfiguration.java @@ -35,7 +35,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; @UriParams public class LinkedInConfiguration { - @UriPath + @UriPath(enums = "comments,companies,groups,jobs,people,posts,search") @Metadata(required = "true") private LinkedInApiName apiName; @UriPath(enums = "addActivity,addComment,addCompanyUpdateComment,addCompanyUpdateCommentAsCompany,addGroupMembership,addInvite" @@ -49,9 +49,9 @@ public class LinkedInConfiguration { + ",removeGroupSuggestion,removeJob,removeJobBookmark,removePost,searchCompanies,searchJobs,searchPeople,share,stopFollowingCompany,updateGroupMembership") @Metadata(required = "true") private String methodName; - @UriParam @Metadata(required = "true") + @UriParam private String userName; - @UriParam @Metadata(required = "true") + @UriParam private String userPassword; @UriParam private OAuthSecureStorage secureStorage; http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInEndpoint.java b/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInEndpoint.java index 4200a06..eaf52f6 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInEndpoint.java +++ b/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/LinkedInEndpoint.java @@ -46,7 +46,8 @@ import org.apache.cxf.jaxrs.client.WebClient; /** * Represents a LinkedIn endpoint. */ -@UriEndpoint(scheme = "linkedin", title = "Linkedin", syntax = "linkedin:apiName/methodName", label = "api,cloud,social", consumerClass = LinkedInConsumer.class) +@UriEndpoint(scheme = "linkedin", title = "Linkedin", syntax = "linkedin:apiName/methodName", label = "api,cloud,social", + consumerClass = LinkedInConsumer.class, lenientProperties = true) public class LinkedInEndpoint extends AbstractApiEndpoint<LinkedInApiName, LinkedInConfiguration> { protected static final String FIELDS_OPTION = "fields"; http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java index 2f4c754..fa1f299 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; public class CommentsResourceIntegrationTest extends AbstractLinkedInTestSupport { private static final Logger LOG = LoggerFactory.getLogger(CommentsResourceIntegrationTest.class); - private static final String PATH_PREFIX = LinkedInApiCollection.getCollection().getApiName(CommentsResourceApiMethod.class).getName(); + private static final String PATH_PREFIX = "comments"; // TODO provide parameter values for getComment @Ignore http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java index 438f1ac..6947fc5 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSupport { private static final Logger LOG = LoggerFactory.getLogger(CompaniesResourceIntegrationTest.class); - private static final String PATH_PREFIX = LinkedInApiCollection.getCollection().getApiName(CompaniesResourceApiMethod.class).getName(); + private static final String PATH_PREFIX = "companies"; private static final Long TEST_COMPANY_ID = 1337L; // TODO provide parameter values for addCompanyUpdateCommentAsCompany http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/ComponentConfigurationIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/ComponentConfigurationIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/ComponentConfigurationIntegrationTest.java index 3c8e6d3..f47cccd 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/ComponentConfigurationIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/ComponentConfigurationIntegrationTest.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; public class ComponentConfigurationIntegrationTest extends AbstractLinkedInTestSupport { private static final Logger LOG = LoggerFactory.getLogger(ComponentConfigurationIntegrationTest.class); - private static final String PATH_PREFIX = LinkedInApiCollection.getCollection().getApiName(CommentsResourceApiMethod.class).getName(); + private static final String PATH_PREFIX = "comments"; @Override protected CamelContext createCamelContext() throws Exception { http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java index 2da02e7..414d623 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; public class GroupsResourceIntegrationTest extends AbstractLinkedInTestSupport { private static final Logger LOG = LoggerFactory.getLogger(GroupsResourceIntegrationTest.class); - private static final String PATH_PREFIX = LinkedInApiCollection.getCollection().getApiName(GroupsResourceApiMethod.class).getName(); + private static final String PATH_PREFIX = "groups"; // TODO provide parameter values for addPost @Ignore http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java index 3f9029b..720d820 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; public class JobsResourceIntegrationTest extends AbstractLinkedInTestSupport { private static final Logger LOG = LoggerFactory.getLogger(JobsResourceIntegrationTest.class); - private static final String PATH_PREFIX = LinkedInApiCollection.getCollection().getApiName(JobsResourceApiMethod.class).getName(); + private static final String PATH_PREFIX = "jobs"; // TODO provide parameter values for addJob @Ignore http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java index 287f445..cf09dd9 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; public class PeopleResourceIntegrationTest extends AbstractLinkedInTestSupport { private static final Logger LOG = LoggerFactory.getLogger(PeopleResourceIntegrationTest.class); - private static final String PATH_PREFIX = LinkedInApiCollection.getCollection().getApiName(PeopleResourceApiMethod.class).getName(); + private static final String PATH_PREFIX = "people"; // TODO provide parameter values for addActivity @Ignore http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java index 04ade42..2315b73 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java @@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; public class PostsResourceIntegrationTest extends AbstractLinkedInTestSupport { private static final Logger LOG = LoggerFactory.getLogger(PostsResourceIntegrationTest.class); - private static final String PATH_PREFIX = LinkedInApiCollection.getCollection().getApiName(PostsResourceApiMethod.class).getName(); + private static final String PATH_PREFIX = "comments"; // TODO provide parameter values for addComment @Ignore http://git-wip-us.apache.org/repos/asf/camel/blob/1febbd6a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java index 806595b..dd56c4e 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java @@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory; public class SearchResourceIntegrationTest extends AbstractLinkedInTestSupport { private static final Logger LOG = LoggerFactory.getLogger(SearchResourceIntegrationTest.class); - private static final String PATH_PREFIX = LinkedInApiCollection.getCollection().getApiName(SearchResourceApiMethod.class).getName(); + private static final String PATH_PREFIX = "search"; @Test public void testSearchCompanies() throws Exception {