uCosminexus Application Server, Web Service Development Guide

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

accept(MediaType... types) method

Description

This method adds a receivable MIME media type.

Syntax

public WebResource.Builder accept(MediaType... types)

Parameter

types
This is an array of the receivable MIME media types.

Return value

The method returns a builder (WebResource.Builder object) to set up the WebResource object.

Notes