List of usage examples for java.net HttpURLConnection HTTP_NO_CONTENT
int HTTP_NO_CONTENT
To view the source code for java.net HttpURLConnection HTTP_NO_CONTENT.
Click Source Link
From source file:com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.java
@Override public void leaveGroup(String groupId) { LinkedInApiUrlBuilder builder = createLinkedInApiUrlBuilder(LinkedInApiUrls.LEAVE_GROUP); String apiUrl = builder.withField(ParameterNames.ID, groupId).buildUrl(); callApiMethod(apiUrl, null, null, HttpMethod.DELETE, HttpURLConnection.HTTP_NO_CONTENT); }
From source file:com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.java
@Override public void unfollowPost(String postId) { LinkedInApiUrlBuilder builder = createLinkedInApiUrlBuilder(LinkedInApiUrls.UNFOLLOW_POST); String apiUrl = builder.withField(ParameterNames.ID, postId).buildUrl(); callApiMethod(apiUrl, "<is-following>false</is-following>", ApplicationConstants.CONTENT_TYPE_XML, HttpMethod.PUT, HttpURLConnection.HTTP_NO_CONTENT); }
From source file:com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.java
@Override public void unlikeGroupPost(String postId) { LinkedInApiUrlBuilder builder = createLinkedInApiUrlBuilder(LinkedInApiUrls.UNLIKE_POST); String apiUrl = builder.withField(ParameterNames.ID, postId).buildUrl(); callApiMethod(apiUrl, "<is-liked>false</is-liked>", ApplicationConstants.CONTENT_TYPE_XML, HttpMethod.PUT, HttpURLConnection.HTTP_NO_CONTENT); }