List of usage examples for java.util Map put
V put(K key, V value);
From source file:Main.java
public static Map<String, Object> getCarOwnerServiceSetupMap(Integer serviceBindSeq, Integer carOwnerSeq, String serviceBindType, String serviceBindName, String serviceBindPara1) { Map<String, Object> map = getMap(); map.put("serviceBindSeq", serviceBindSeq); map.put("carOwnerSeq", carOwnerSeq); /* map.put("serviceOrgSeq", serviceOrgSeq); */ map.put("serviceBindType", serviceBindType); map.put("serviceBindName", serviceBindName); map.put("serviceBindPara1", serviceBindPara1); return map;/*from w ww . ja v a2 s. co m*/ }
From source file:Main.java
public static Map<String, Object> getfindServiceOrder(Integer page, Integer carOwnerSeq, Integer rows, Integer status) {//from w w w .j a v a2 s . c o m Map<String, Object> map = getMap(); map.put("page", page); Map<String, Object> where = getMap(); where.put("carOwnerSeq", carOwnerSeq); where.put("status", status); map.put("rows", rows); map.put("where", where); return map; }
From source file:Main.java
private static void addPattern(Map<Pattern, Integer> map, String smile, int resource) { map.put(Pattern.compile(Pattern.quote(smile)), resource); }
From source file:Main.java
public static void setBasicHttpAuth(Object wsProxy, String username, String password) { javax.xml.ws.BindingProvider bp = (javax.xml.ws.BindingProvider) wsProxy /*port*/; Map<String, Object> context = bp.getRequestContext(); context.put(BindingProvider.USERNAME_PROPERTY, username); context.put(BindingProvider.PASSWORD_PROPERTY, password); }
From source file:Main.java
public static Map<String, Object> getOrderAppointmentMap(String ownerTel, String bookingWay, String submitPic, String sendName, Integer addrProvice, Integer addrCity, String addrDetail) { Map<String, Object> map = getMap(); map.put("ownerTel", ownerTel); map.put("bookingWay", bookingWay); map.put("submitPic", submitPic); map.put("sendName", sendName); map.put("addrProvice", addrProvice); map.put("addrCity", addrCity); map.put("addrDetail", addrDetail); return map;//from www .j a va2 s . c o m }
From source file:com.ebay.pulsar.collector.Simulator.java
private static void sendMessage() throws IOException, JsonProcessingException, JsonGenerationException, JsonMappingException, UnsupportedEncodingException, HttpException { ObjectMapper mapper = new ObjectMapper(); Map<String, Object> m = new HashMap<String, Object>(); m.put("si", "12345"); m.put("ct", System.currentTimeMillis()); String payload = mapper.writeValueAsString(m); HttpClient client = new HttpClient(); PostMethod method = new PostMethod("http://localhost:8080/tracking/ingest/PulsarRawEvent"); // method.addRequestHeader("Accept-Encoding", "gzip,deflate,sdch"); method.setRequestEntity(new StringRequestEntity(payload, "application/json", "UTF-8")); int status = client.executeMethod(method); System.out.println(Arrays.toString(method.getResponseHeaders())); System.out.println("Status code: " + status + ", Body: " + method.getResponseBodyAsString()); }
From source file:Main.java
public static Map<String, Object> addViolationCarId(Integer carOwnerSeq, Integer carAddType, String carId, String carVin, String carEngine, Integer carStatus) { Map<String, Object> map = getMap(); map.put("carOwnerSeq", carOwnerSeq); map.put("carAddType", carAddType); map.put("carId", carId); map.put("carVin", carVin); map.put("carEngine", carEngine); map.put("carStatus", carStatus); return map;/* w w w.java2 s . c om*/ }
From source file:Main.java
public static Map<String, Object> getCommentMap(Integer carOwnerSeq, Integer careggServiceSeq, Integer serviceCommentType, Integer upServiceCommentSeq, Integer serviceCommentValue, Integer serviceCommentContent) { Map<String, Object> map = getMap(); map.put("carOwnerSeq", carOwnerSeq); map.put("careggServiceSeq", carOwnerSeq); map.put("serviceCommentType", carOwnerSeq); map.put("upServiceCommentSeq", carOwnerSeq); map.put("serviceCommentValue", carOwnerSeq); map.put("serviceCommentContent", serviceCommentContent); return map;/*w w w. j av a 2 s.co m*/ }
From source file:Main.java
public static Map<String, String> createHeaders(boolean includeContentType) { Map<String, String> headers = new HashMap<>(); headers.put("Authorization", ""); if (includeContentType) { headers.put("Content-Type", "application/json;"); }//www .j a v a2 s . c om return headers; }