本文整理了Java中org.eclipse.jetty.util.MultiMap.<init>()
方法的一些代码示例,展示了MultiMap.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiMap.<init>()
方法的具体详情如下:
包路径:org.eclipse.jetty.util.MultiMap
类名称:MultiMap
方法名:<init>
暂无
代码示例来源:origin: org.eclipse.jetty/jetty-util
_parts = new MultiMap<>();
String contentTransferEncoding=null;
MultiMap<String> headers = new MultiMap<>();
while(true)
代码示例来源:origin: org.eclipse.jetty/jetty-security
MultiMap<String> formParameters = new MultiMap<>();
base_request.extractFormParameters(formParameters);
session.setAttribute(__J_POST, formParameters);
代码示例来源:origin: org.eclipse.jetty/jetty-http
public void reset()
{
_part = null;
contentDisposition = null;
contentType = null;
headers = new MultiMap<>();
}
}
代码示例来源:origin: jenkinsci/winstone
public void reset()
{
_part = null;
contentDisposition = null;
contentType = null;
headers = new MultiMap<>();
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
public ClassInheritanceHandler()
{
_inheritanceMap = new MultiMap();
}
代码示例来源:origin: org.keycloak/keycloak-jetty92-adapter
protected MultiMap<String> extractFormParameters(Request base_request) {
MultiMap<String> formParameters = new MultiMap<String>();
base_request.extractFormParameters(formParameters);
return formParameters;
}
protected void restoreFormParameters(MultiMap<String> j_post, Request base_request) {
代码示例来源:origin: org.keycloak/spring-boot-container-bundle
protected MultiMap<String> extractFormParameters(Request base_request) {
MultiMap<String> formParameters = new MultiMap<String>();
base_request.extractFormParameters(formParameters);
return formParameters;
}
protected void restoreFormParameters(MultiMap<String> j_post, Request base_request) {
代码示例来源:origin: org.keycloak/keycloak-saml-jetty93-adapter
protected MultiMap<String> extractFormParameters(Request base_request) {
MultiMap<String> formParameters = new MultiMap<String>();
base_request.extractFormParameters(formParameters);
return formParameters;
}
protected void restoreFormParameters(MultiMap<String> j_post, Request base_request) {
代码示例来源:origin: org.keycloak/keycloak-saml-jetty94-adapter
protected MultiMap<String> extractFormParameters(Request base_request) {
MultiMap<String> formParameters = new MultiMap<String>();
base_request.extractFormParameters(formParameters);
return formParameters;
}
protected void restoreFormParameters(MultiMap<String> j_post, Request base_request) {
代码示例来源:origin: org.keycloak/keycloak-jetty94-adapter
protected MultiMap<String> extractFormParameters(Request base_request) {
MultiMap<String> formParameters = new MultiMap<String>();
base_request.extractFormParameters(formParameters);
return formParameters;
}
protected void restoreFormParameters(MultiMap<String> j_post, Request base_request) {
代码示例来源:origin: org.keycloak/keycloak-saml-jetty92-adapter
protected MultiMap<String> extractFormParameters(Request base_request) {
MultiMap<String> formParameters = new MultiMap<String>();
base_request.extractFormParameters(formParameters);
return formParameters;
}
protected void restoreFormParameters(MultiMap<String> j_post, Request base_request) {
代码示例来源:origin: com.yahoo.vespa/jdisc_http_service
private static Map<String, List<String>> getUriQueryParameters(URI uri) {
MultiMap<String> queryParameters = new MultiMap<>();
new HttpURI(uri).decodeQueryTo(queryParameters);
// Do a deep copy so we do not leak Jetty classes outside
Map<String, List<String>> deepCopiedQueryParameters = new HashMap<>();
for (Map.Entry<String, List<String>> entry : queryParameters.entrySet()) {
deepCopiedQueryParameters.put(entry.getKey(), new ArrayList<>(entry.getValue()));
}
return deepCopiedQueryParameters;
}
代码示例来源:origin: org.eclipse.jetty.websocket/websocket-client
@Override
public Map<String, List<String>> getParameterMap()
{
Map<String,List<String>> paramMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
String query = getQueryString();
MultiMap<String> multimap = new MultiMap<>();
UrlEncoded.decodeTo(query,multimap,StandardCharsets.UTF_8);
paramMap.putAll(multimap);
return paramMap;
}
代码示例来源:origin: org.keycloak/keycloak-jetty81-adapter
protected MultiMap<String> extractFormParameters(Request base_request) {
MultiMap<String> formParameters = new MultiMap<String>();
base_request.extractParameters();
return base_request.getParameters();
}
protected void restoreFormParameters(MultiMap<String> j_post, Request base_request) {
代码示例来源:origin: org.keycloak/keycloak-saml-jetty81-adapter
protected MultiMap<String> extractFormParameters(Request base_request) {
MultiMap<String> formParameters = new MultiMap<String>();
base_request.extractParameters();
return base_request.getParameters();
}
protected void restoreFormParameters(MultiMap<String> j_post, Request base_request) {
代码示例来源:origin: Nextdoor/bender
private MultiMap<String> restoreParameters()
{
MultiMap<String> result = new MultiMap<>();
if (_queryParameters == null)
_queryParameters = extractQueryParameters();
result.addAllValues(_queryParameters);
result.addAllValues(_contentParameters);
return result;
}
代码示例来源:origin: SwellRT/swellrt
public void testCallbackThrowsHandlingUnsupportedCallback() throws IOException {
CallbackHandler handler = new HttpRequestBasedCallbackHandler(new MultiMap<String>());
try {
handler.handle(new Callback[] {new Callback() {}});
fail("Should have thrown due to unsupported callback");
} catch (UnsupportedCallbackException e) {
// Pass.
}
}
}
代码示例来源:origin: apache/incubator-wave
public void testCallbackThrowsHandlingUnsupportedCallback() throws IOException {
CallbackHandler handler = new HttpRequestBasedCallbackHandler(new MultiMap<String>());
try {
handler.handle(new Callback[] {new Callback() {}});
fail("Should have thrown due to unsupported callback");
} catch (UnsupportedCallbackException e) {
// Pass.
}
}
}
代码示例来源:origin: SwellRT/swellrt
public void testBindsUsernameAndPassword() throws IOException, UnsupportedCallbackException {
MultiMap<String> args = new MultiMap<String>();
args.add("address", "seph@example.com");
args.add("password", "internet");
CallbackHandler handler = new HttpRequestBasedCallbackHandler(args);
Callback[] callbacks =
new Callback[] {new NameCallback("ignored"), new PasswordCallback("ignored", false),};
handler.handle(callbacks);
assertEquals("seph@example.com", ((NameCallback) callbacks[0]).getName());
assertEquals("internet", new String(((PasswordCallback) callbacks[1]).getPassword()));
}
代码示例来源:origin: apache/incubator-wave
public void testBindsUsernameAndPassword() throws IOException, UnsupportedCallbackException {
MultiMap<String> args = new MultiMap<String>();
args.add("address", "seph@example.com");
args.add("password", "internet");
CallbackHandler handler = new HttpRequestBasedCallbackHandler(args);
Callback[] callbacks =
new Callback[] {new NameCallback("ignored"), new PasswordCallback("ignored", false),};
handler.handle(callbacks);
assertEquals("seph@example.com", ((NameCallback) callbacks[0]).getName());
assertEquals("internet", new String(((PasswordCallback) callbacks[1]).getPassword()));
}
内容来源于网络,如有侵权,请联系作者删除!