uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
get(Class<T> c) method
Description
This method invokes the HTTP GET method.
Syntax
public <T> T get(Class<T> c)
throws UniformInterfaceException
Parameter
- c
- This is the type of an HTTP response entity.
Return value
The get(Class<T> c) method returns the object of the specified type.
Exception
- UniformInterfaceException
- This exception is thrown if any of the following conditions is fulfilled. The error message KDJJ18888-E is output to the log.
- If the status code of the HTTP response is 204
- If the status code of the HTTP response is 300 or more and the c parameter is not of the ClientResponse type
Notes
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.