Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sso
Commits
d3e00a64
Commit
d3e00a64
authored
Aug 07, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
0beaa6d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
UrlBuilder.java
src/main/java/com/egolm/sso/oauth/UrlBuilder.java
+6
-6
No files found.
src/main/java/com/egolm/sso/oauth/UrlBuilder.java
View file @
d3e00a64
...
@@ -25,7 +25,7 @@ public class UrlBuilder {
...
@@ -25,7 +25,7 @@ public class UrlBuilder {
* 设置参数
* 设置参数
* @param key 参数名
* @param key 参数名
* @param value 参数值
* @param value 参数值
* @return
* @return
返回URL构造器
*/
*/
public
UrlBuilder
setParameter
(
String
key
,
String
value
)
{
public
UrlBuilder
setParameter
(
String
key
,
String
value
)
{
parameters
.
put
(
key
,
value
);
parameters
.
put
(
key
,
value
);
...
@@ -36,7 +36,7 @@ public class UrlBuilder {
...
@@ -36,7 +36,7 @@ public class UrlBuilder {
* 设置头信息
* 设置头信息
* @param key 参数名
* @param key 参数名
* @param value 参数值
* @param value 参数值
* @return
* @return
返回URL构造器
*/
*/
public
UrlBuilder
setHeader
(
String
key
,
String
value
)
{
public
UrlBuilder
setHeader
(
String
key
,
String
value
)
{
headers
.
put
(
key
,
value
);
headers
.
put
(
key
,
value
);
...
@@ -45,7 +45,7 @@ public class UrlBuilder {
...
@@ -45,7 +45,7 @@ public class UrlBuilder {
/**
/**
* 获取全部头信息
* 获取全部头信息
* @return
* @return
返回全部头信息
*/
*/
public
Map
<
String
,
String
>
getHeaders
()
{
public
Map
<
String
,
String
>
getHeaders
()
{
return
headers
;
return
headers
;
...
@@ -53,8 +53,8 @@ public class UrlBuilder {
...
@@ -53,8 +53,8 @@ public class UrlBuilder {
/**
/**
* 转为HTTP链接(URL已编码)
* 转为HTTP链接(URL已编码)
* @return
* @return
返回已编码URL
* @throws UnsupportedEncodingException
* @throws UnsupportedEncodingException
URL编码异常
*/
*/
public
String
toEncodeUrlString
()
throws
UnsupportedEncodingException
{
public
String
toEncodeUrlString
()
throws
UnsupportedEncodingException
{
StringBuffer
sb
=
new
StringBuffer
(
url
);
StringBuffer
sb
=
new
StringBuffer
(
url
);
...
@@ -80,7 +80,7 @@ public class UrlBuilder {
...
@@ -80,7 +80,7 @@ public class UrlBuilder {
/**
/**
* 转为HTTP链接(URL未编码)
* 转为HTTP链接(URL未编码)
* @return
* @return
返回未编码URL
*/
*/
public
String
toUrlString
()
{
public
String
toUrlString
()
{
StringBuffer
sb
=
new
StringBuffer
(
url
);
StringBuffer
sb
=
new
StringBuffer
(
url
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment