1 package com.atlassian.plugins.rest.module.util;
2
3 import javax.ws.rs.core.MultivaluedMap;
4 import javax.ws.rs.core.Response;
5 import java.net.URI;
6
7
8
9
10 class GeneratedURIResponse extends Response {
11 private URI uri;
12
13 GeneratedURIResponse(URI uri) {
14 this.uri = uri;
15 }
16
17 public URI getURI() {
18 return uri;
19 }
20
21 public String toString() {
22 return uri.toString();
23 }
24
25 @Override
26 public Object getEntity() {
27 throw new UnsupportedOperationException();
28 }
29
30 @Override
31 public int getStatus() {
32 throw new UnsupportedOperationException();
33 }
34
35 @Override
36 public MultivaluedMap<String, Object> getMetadata() {
37 throw new UnsupportedOperationException();
38 }
39
40 }