uCosminexus Application Server, Web Service Development Guide

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

entity(Object entity) method

Description

This method sets an HTTP request entity.

For the Java types available for an HTTP request entity, see 25.15.1 Combination of Java types and MIME media types available for an HTTP request entity. You can use the GenericEntity object to specify generics in the entity.

Syntax

public T entity(Object entity)

Parameter

entity
This is an HTTP request entity.

Return value

The method returns a builder (ClientRequest.Builder object).

Notes

None.