uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

delete(GenericType<T> gt, Object requestEntity) method

Description

This method invokes the HTTP DELETE method. The delete(GenericType<T> gt, Object requestEntity) method includes an entity in the request and also receives a response entity.

Syntax

public <T> T delete(GenericType<T> gt,

Object requestEntity)

throws UniformInterfaceException

Parameter

gt
This is the GenericType object that expresses the type of an HTTP response entity.

requestEntity
This is the HTTP request entity.

Return value

The delete(GenericType<T> gt, Object requestEntity) method returns the object of the type expressed by the specified GenericType object.

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 gt parameter does not express the ClientResponse type

Notes