Package javax.net.ssl

Examples of javax.net.ssl.HttpsURLConnection


     * @throws BuzzParsingException if a parsing error occurs
     */
    private BuzzFeed getPostsWithAuthentication( String userId, BuzzFeed.Type feedType )
        throws BuzzIOException, BuzzAuthenticationException, BuzzParsingException
    {
        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_ACTIVITIES + userId + "/" + feedType.getName() );
        buzzOAuth.signRequest( request );
        String xmlResponse = BuzzIO.send( request );
        return BuzzFeedParser.parseFeed( xmlResponse );
    }
View Full Code Here


     * @throws BuzzParsingException if a parsing error occurs
     */
    private BuzzFeed getPostsWithoutAuthentication( String userId, BuzzFeed.Type feedType )
        throws BuzzIOException, BuzzAuthenticationException, BuzzParsingException
    {
        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_ACTIVITIES + userId + "/" + feedType.getName() );
        String xmlResponse = BuzzIO.send( request );
        return BuzzFeedParser.parseFeed( xmlResponse );
    }
View Full Code Here

     * @throws BuzzParsingException if a parsing error occurs
     */
    public BuzzUserProfile getUserProfile( String userId )
        throws BuzzIOException, BuzzAuthenticationException, BuzzParsingException
    {
        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_PEOPLE + userId + "/"
            + BuzzFeed.Type.PRIVATE.getName() );
        buzzOAuth.signRequest( request );
        String xmlResponse = BuzzIO.send( request );
        return BuzzUserProfileParser.parseProfile( xmlResponse );
    }
View Full Code Here

     * @throws BuzzParsingException if a parsing error occurs
     */
    public List<BuzzUserProfile> followers( String userId )
        throws BuzzIOException, BuzzAuthenticationException, BuzzParsingException
    {
        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_PEOPLE + userId + "/@groups/"
            + BuzzFeed.Type.FOLLOWERS.getName() );
        buzzOAuth.signRequest( request );
        String xmlResponse = BuzzIO.send( request );
        return BuzzUsersProfilesParser.parseUsersProfiles( xmlResponse );
    }
View Full Code Here

     * @throws BuzzParsingException if a parsing error occurs
     */
    public List<BuzzUserProfile> following( String userId )
        throws BuzzIOException, BuzzAuthenticationException, BuzzParsingException
    {
        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_PEOPLE + userId + "/@groups/"
            + BuzzFeed.Type.FOLLOWING.getName() );
        buzzOAuth.signRequest( request );
        String xmlResponse = BuzzIO.send( request );
        return BuzzUsersProfilesParser.parseUsersProfiles( xmlResponse );
    }
View Full Code Here

    public void follow( String userId, String userIdToFollow )
        throws BuzzIOException, BuzzAuthenticationException
    {
        Map<String, String> headers = new HashMap<String, String>();
        headers.put( "Content-Length", "0" );
        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_PEOPLE + userId + "/@groups/"
            + BuzzFeed.Type.FOLLOWING.getName() + "/" + userIdToFollow, BuzzIO.HTTP_METHOD_PUT, headers );
        buzzOAuth.signRequest( request );
        BuzzIO.send( request );
    }
View Full Code Here

     * @throws BuzzAuthenticationException if any OAuth error occurs
     */
    public void unfollow( String userId, String userIdToUnfollow )
        throws BuzzIOException, BuzzAuthenticationException
    {
        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_PEOPLE + userId + "/@groups/"
            + BuzzFeed.Type.FOLLOWING.getName() + "/" + userIdToUnfollow, BuzzIO.HTTP_METHOD_DELETE, null );
        buzzOAuth.signRequest( request );
        BuzzIO.send( request );
    }
View Full Code Here

    public BuzzFeedEntry createPost( String userId, BuzzContent content, BuzzLink link )
        throws BuzzIOException, BuzzAuthenticationException, BuzzValidationException, BuzzParsingException
    {
        String payload = XMLGenerator.constructPayload( content, link );

        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_ACTIVITIES + userId + "/"
            + BuzzFeed.Type.PRIVATE.getName(), BuzzIO.HTTP_METHOD_POST );

        buzzOAuth.signRequest( BuzzIO.addBody( request, payload ) );

        String xmlResponse = BuzzIO.send( request );
View Full Code Here

     * @throws BuzzParsingException if a parsing error occurs
     */
    public BuzzFeedEntry getPost( String userId, String activityId )
        throws BuzzIOException, BuzzAuthenticationException, BuzzParsingException
    {
        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_ACTIVITIES + userId + "/"
            + BuzzFeed.Type.PRIVATE.getName() + "/" + activityId );

        buzzOAuth.signRequest( request );

        String xmlResponse = BuzzIO.send( request );
View Full Code Here

     * @throws BuzzAuthenticationException if any OAuth error occurs
     */
    public void deletePost( String userId, String activityId )
        throws BuzzIOException, BuzzAuthenticationException
    {
        HttpsURLConnection request = BuzzIO.createRequest( BUZZ_URL_ACTIVITIES + userId + "/"
            + BuzzFeed.Type.PRIVATE.getName() + "/" + activityId, BuzzIO.HTTP_METHOD_DELETE );

        buzzOAuth.signRequest( request );

        BuzzIO.send( request );
View Full Code Here

TOP

Related Classes of javax.net.ssl.HttpsURLConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.