InBoundHeaders headers =newInBoundHeaders();// X-FORWARDED-* 系のヘッダ設定String scheme ="https"; String host ="example.org"; headers.add(PersoniumCoreUtils.HttpHeaders.X_FORWARDED_PROTO, scheme); headers.add(PersoniumCoreUtils.HttpHeaders.X_FORWARDED_HOST, host); ContainerRequest request =ne...
Example 9Source File: ParaClient.java From para with Apache License 2.0 5 votes private Map<String, Object> find(String queryType, MultivaluedMap<String, String> params) { Map<String, Object> map = new HashMap<>(); if (params != null && !params.isEmpty()) { String qType = ...
String baseUri = "http://www.example.com:5435"; DiscoveryService ds = new DiscoveryService( config, new EntityOutputFormat( new JsonFormat(), new URI( baseUri ), null ), communityDiscoverableURIs( config, null ) ); Response response = ds.redirectToBrowser(); assertThat( response.getMetadata...
AHashSetValuedHashMapuses aHashSetfor storing the values for each given key. Therefore,it doesn’t allow duplicate key-value pairs. Let’s see a quick example, where we add the same key-value mapping twice: Notice how, unlike our previous example that usedArrayListValuedHashMap,theHashSetVal...
开发者ID:developerSid,项目名称:AwesomeJavaLibraryExamples,代码行数:19,代码来源:ExampleMultiValueMap.java org.apache.commons.collections4.MultiValuedMap;//导入方法依赖的package包/类@TestvoidShould_Use_User_Constructor_Parameters(){// givenfinalClass[] classesToTest = { ClassWithSyntheticConstructor.class...
Example 7Source File: TrasformazioniUtils.java From govpay with GNU General Public License v3.0 6 votes private static Map<String, String> convertMultiToRegularMap(MultivaluedMap<String, String> m) { Map<String, String> map = new HashMap<String, String>(); if (m == null) { return ...
Example #3Source File: QueryExecutorBeanTest.java From datawave with Apache License 2.0 6 votes private MultivaluedMap createNewQueryParameterMap() throws Exception { MultivaluedMap<String,String> p = new MultivaluedMapImpl<>(); p.putSingle(QueryParameters.QUERY_STRING, "foo == 'bar'"); p...
Example #3Source File: QueryExecutorBeanTest.java From datawave with Apache License 2.0 6 votes private MultivaluedMap createNewQueryParameterMap() throws Exception { MultivaluedMap<String,String> p = new MultivaluedMapImpl<>(); p.putSingle(QueryParameters.QUERY_STRING, "foo == 'bar'"); p...
Example 2Source File: UtilsTest.java From amforeas with GNU General Public License v3.0 6 votes @Test public void testLimitParam () { MultivaluedMap<String, String> formParams = new MultivaluedHashMap<>(); LimitParam instance = LimitParam.valueOf(formParams); assertEquals(instance.getLimit...
Example 4Source File: DeviceCompleteRequestHandlerSpiImpl.java From java-oauth-server with Apache License 2.0 6 votes public DeviceCompleteRequestHandlerSpiImpl( MultivaluedMap<String, String> parameters, User user, Date userAuthenticatedAt, String[] acrs) { // Check the result of end-user ...