本文整理汇总了Java中org.dmfs.rfc3986.encoding.XWwwFormUrlEncoded类的典型用法代码示例。如果您正苦于以下问题:Java XWwwFormUrlEncoded类的具体用法?Java XWwwFormUrlEncoded怎么用?Java XWwwFormUrlEncoded使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XWwwFormUrlEncoded类属于org.dmfs.rfc3986.encoding包,在下文中一共展示了XWwwFormUrlEncoded类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: rewritten
import org.dmfs.rfc3986.encoding.XWwwFormUrlEncoded; //导入依赖的package包/类
@Override
public URI rewritten(URI location, HttpRequest<?> request)
{
// Note: this will look simpler when we switched to uri-toolkit
// parse the given URI
Uri uri = new LazyUri(new Precoded(location.toString()));
// create updated ParameterList
ParameterList parameters = uri.query().isPresent() ? new Replacing(
new XwfueParameterList(uri.query().value()), mParameters) : new BasicParameterList(mParameters);
// Replace parameters of old Uri before forwarding the result to the delegate
return mDelegate.rewritten(
URI.create(new Text(new Resolved(uri, new RelativeUri(new SimpleQuery(new XWwwFormUrlEncoded(parameters))))).toString()),
request);
}
示例2: authorizationUri
import org.dmfs.rfc3986.encoding.XWwwFormUrlEncoded; //导入依赖的package包/类
@Override
public URI authorizationUri(URI authorizationEndpoint)
{
// TODO: refuse to return a URI without a client id.
try
{
return URI.create(new URI(authorizationEndpoint.getScheme(), authorizationEndpoint.getAuthority(),
authorizationEndpoint.getPath(), null, null) + "?" + new XWwwFormUrlEncoded(mParameters).toString());
}
catch (URISyntaxException e)
{
throw new RuntimeException("Can't create valid authorization URI", e);
}
}
示例3: XWwwFormUrlEncodedEntity
import org.dmfs.rfc3986.encoding.XWwwFormUrlEncoded; //导入依赖的package包/类
public XWwwFormUrlEncodedEntity(final ParameterList values)
{
super(new TextRequestEntity(new StructuredMediaType("application", "x-www-form-urlencoded"),
new Single<CharSequence>()
{
@Override
public CharSequence value()
{
return new XWwwFormUrlEncoded(values);
}
}));
}
示例4: SimpleFragment
import org.dmfs.rfc3986.encoding.XWwwFormUrlEncoded; //导入依赖的package包/类
public SimpleFragment(ParameterList parameters)
{
this(new XWwwFormUrlEncoded(parameters));
}
示例5: SimpleQuery
import org.dmfs.rfc3986.encoding.XWwwFormUrlEncoded; //导入依赖的package包/类
public SimpleQuery(ParameterList params)
{
this(new XWwwFormUrlEncoded(params));
}
示例6: state
import org.dmfs.rfc3986.encoding.XWwwFormUrlEncoded; //导入依赖的package包/类
@Override
public OAuth2InteractiveGrant.OAuth2GrantState state()
{
return new InitialAuthorizationCodeGrantState(mScope, mState, mCodeVerifier, new XWwwFormUrlEncoded(mCustomParameters));
}
示例7: toString
import org.dmfs.rfc3986.encoding.XWwwFormUrlEncoded; //导入依赖的package包/类
@Override
public String toString()
{
return new XWwwFormUrlEncoded(mValues).toString();
}