uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
method(String method) method
Description
This method invokes the HTTP method. The method(String method) method does not include any entity in the request and does not receive any response entity.
An entity is ignored if the status code is below 300 and the entity is included in a response.
Syntax
public void method(String method)
throws UniformInterfaceException
Parameter
- method
- This is the name of an HTTP method.
Return value
Exception
- UniformInterfaceException
- This exception is thrown if the HTTP response status code is 300 or more. The error message KDJJ18888-E is output to the log.
Notes
- Specify uppercase GET, HEAD, POST, OPTIONS, PUT, or DELETE in the method parameter.
- If an exception is thrown during the processing of an HTTP request or an HTTP response, an error (KDJJ18888-E) occurs and the ClientHandlerException exception that wraps this exception is thrown.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.