Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(119)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Unified Diff: google-http-client/src/main/java/com/google/api/client/http/DefaultGenericUrlEscaper.java

Issue 6464066: Allow escaping algorithm to be specified in GenericUrl Base URL: https://google-http-java-client.googlecode.com/hg/
Patch Set: Minor fix Created 13 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | google-http-client/src/main/java/com/google/api/client/http/GenericUrl.java » ('j') | google-http-client/src/main/java/com/google/api/client/http/GenericUrlEscaper.java » ('J')
('e') | ('c') | ('s')
Index: google-http-client/src/main/java/com/google/api/client/http/DefaultGenericUrlEscaper.java
===================================================================
new file mode 100644
--- /dev/null
+++ b/google-http-client/src/main/java/com/google/api/client/http/DefaultGenericUrlEscaper.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2012 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.google.api.client.http;
+
+import com.google.api.client.util.escape.CharEscapers;
+
+/**
+ * Default implementation of {@link GenericUrlEscaper} that uses {@link CharEscapers}.
+ *
+ * @author rmistry@google.com (Ravi Mistry)
+ * @since 1.11
+ */
+public class DefaultGenericUrlEscaper implements GenericUrlEscaper {
+
+ public String escapeUriPath(String pathPart) {
+ return CharEscapers.escapeUriPath(pathPart);
+ }
+
+ public String escapeQueryParamKey(String key) {
+ return CharEscapers.escapeUriQuery(key);
+ }
+
+ public String escapeQueryParamValue(String value) {
+ return CharEscapers.escapeUriQuery(value);
+ }
+
+ public String decodeUri(String uri) {
+ return CharEscapers.decodeUri(uri);
+ }
+}
« no previous file with comments | « no previous file | google-http-client/src/main/java/com/google/api/client/http/GenericUrl.java » ('j') | google-http-client/src/main/java/com/google/api/client/http/GenericUrlEscaper.java » ('J')
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /