Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(99)

Issue 217074: Constructor to create UriBuilder from an HttpServletRequest (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 11 months ago by johnfargo
Modified:
15 years, 11 months ago
Reviewers:
zhoresh, shindig.remailer
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

I believe this works fine but could use some insight into whether I'm missing edge cases.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -2 lines) Patch
java/common/src/main/java/org/apache/shindig/common/uri/UriBuilder.java View 2 chunks +16 lines, -0 lines 1 comment Download
java/common/src/test/java/org/apache/shindig/common/uri/UriBuilderTest.java View 2 chunks +64 lines, -2 lines 0 comments Download

Messages

Total messages: 3
johnfargo
15 years, 11 months ago (2010-02-22 16:59:41 UTC) #1
zhoresh
http://codereview.appspot.com/217074/diff/1/3 File java/common/src/main/java/org/apache/shindig/common/uri/UriBuilder.java (right): http://codereview.appspot.com/217074/diff/1/3#newcode68 java/common/src/main/java/org/apache/shindig/common/uri/UriBuilder.java:68: (serverPort == 443 && "https".equals(scheme)) ? "" : To ...
15 years, 11 months ago (2010-02-22 17:52:19 UTC) #2
johnfargo
15 years, 11 months ago (2010-02-22 19:48:58 UTC) #3
Seems sensible to me. Added logic to accommodate this along w/ a new test,
and committed. Thanks!

On Mon, Feb 22, 2010 at 9:52 AM, <zhoresh@gmail.com> wrote:

>
> http://codereview.appspot.com/217074/diff/1/3
> File
>
> java/common/src/main/java/org/apache/shindig/common/uri/UriBuilder.java
> (right):
>
> http://codereview.appspot.com/217074/diff/1/3#newcode68
> java/common/src/main/java/org/apache/shindig/common/uri/UriBuilder.java:68:
> (serverPort == 443 && "https".equals(scheme)) ? "" :
> To be on the safe side, I will check also for port <=0 and don't specify
> port (for some reason I remember seeing -1 when port is not specified).
>
>
> http://codereview.appspot.com/217074/show
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b