Code example for URL

0
            return null; 
        } 
 
        Request pagingRequest;
        try { 
            pagingRequest = new Request(request.getSession(), new URL(link));
        } catch (MalformedURLException e) {
            return null; 
        } 
 
        return pagingRequest;
    } 
 
    /** 
     * Provides a debugging string for this response. 
     */ 
    @Override 
    public String toString() {
        String responseCode;
        try { 
            responseCode = String.format("%d", (connection != null) ? connection.getResponseCode() : 200);