本文整理匯總了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();
}