2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017-2018 Amdocs
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 package org.onap.crud.service.util;
24 import java.net.URISyntaxException;
25 import java.util.List;
27 import javax.ws.rs.core.MultivaluedHashMap;
28 import javax.ws.rs.core.MultivaluedMap;
29 import javax.ws.rs.core.PathSegment;
30 import javax.ws.rs.core.UriBuilder;
31 import javax.ws.rs.core.UriInfo;
33 import org.apache.http.client.utils.URIBuilder;
35 public class TestUriInfo implements UriInfo {
38 public URI getAbsolutePath() {
39 // TODO Auto-generated method stub
44 public UriBuilder getAbsolutePathBuilder() {
45 // TODO Auto-generated method stub
50 public URI getBaseUri() {
51 // TODO Auto-generated method stub
56 public UriBuilder getBaseUriBuilder() {
57 // TODO Auto-generated method stub
62 public List<Object> getMatchedResources() {
63 // TODO Auto-generated method stub
68 public List<String> getMatchedURIs() {
69 // TODO Auto-generated method stub
74 public List<String> getMatchedURIs(boolean arg0) {
75 // TODO Auto-generated method stub
80 public String getPath() {
81 // TODO Auto-generated method stub
86 public String getPath(boolean arg0) {
87 // TODO Auto-generated method stub
92 public MultivaluedMap<String, String> getPathParameters() {
93 // TODO Auto-generated method stub
98 public MultivaluedMap<String, String> getPathParameters(boolean arg0) {
99 // TODO Auto-generated method stub
104 public List<PathSegment> getPathSegments() {
105 // TODO Auto-generated method stub
110 public List<PathSegment> getPathSegments(boolean arg0) {
111 // TODO Auto-generated method stub
116 public MultivaluedMap<String, String> getQueryParameters() {
117 MultivaluedMap<String, String> map = new MultivaluedHashMap<String, String>();
118 map.add("hostname", "myhost");
123 public MultivaluedMap<String, String> getQueryParameters(boolean arg0) {
128 public URI getRequestUri() {
129 // TODO Auto-generated method stub
131 return new URIBuilder().setQuery("hostname=myhost").build();
132 } catch (URISyntaxException e) {
133 // TODO Auto-generated catch block
140 public UriBuilder getRequestUriBuilder() {
141 // TODO Auto-generated method stub
146 public URI relativize(URI arg0) {
147 // TODO Auto-generated method stub
152 public URI resolve(URI arg0) {
153 // TODO Auto-generated method stub