uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
getType() method
Description
This method acquires the value of the Content-Type HTTP header.
Syntax
public MediaType getType()
Parameter
Return value
The method returns the value of the Content-Type HTTP header.
Notes
- The method returns null if the HTTP response does not contain the Content-Type HTTP header or if HttpURLConnection returns null as the value of the Content-Type HTTP header.
- If the MediaType object cannot be set up from the value of the Content-Type HTTP header, the IllegalArgumentException exception is thrown.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.