public class ServerProvider extends Object
| Constructor and Description |
|---|
ServerProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Server server,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
Server |
readFrom(Class<Server> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
<any> httpHeaders,
InputStream entityStream)
Reading from HTTP Request, incoming REST Call from OpenStack Clients
|
void |
writeTo(Server server,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
<any> httpHeaders,
OutputStream entityStream)
This would be needed if the HTTP Response would consist of a server object.
|
public long getSize(Server server, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
public void writeTo(Server server, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, <any> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
IOExceptionWebApplicationExceptionpublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
public Server readFrom(Class<Server> type, Type genericType, Annotation[] annotations, MediaType mediaType, <any> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException
IOExceptionWebApplicationException