@RestController
public class Poc1RestController
extends java.lang.Object
Constructor and Description |
---|
Poc1RestController() |
Modifier and Type | Method and Description |
---|---|
PocResult |
poc1(java.lang.String name)
REST Endpoint that has a non pay per request PaymentRequired annotation.
|
PocResult |
poc1APIError()
REST Endpoint that generates an IOException, behind a paywall
|
PocResult |
poc1APIErrorNoPaywall()
REST Endpoint that generates an IOException, without paywall
|
PocResult |
poc1NoPaymentRequired()
REST Endpoint that has no PaymentRequired annotation.
|
PocResult |
poc1PayPerRequest()
REST Endpoint that has a pay per request PaymentRequired annotation.
|
@PaymentRequired(articleId="abc123") @RequestMapping(value="/poc1") public PocResult poc1(@RequestParam(value="name",defaultValue="Poc1") java.lang.String name)
name
- value returned in generated string response.@PaymentRequired(articleId="abcPayPerRequest", payPerRequest=true) @RequestMapping(value="/poc1PayPerRequest") public PocResult poc1PayPerRequest()
@RequestMapping(value="/poc1NoPaymentRequired") public PocResult poc1NoPaymentRequired()
@PaymentRequired(articleId="abcPayPerRequest", payPerRequest=true) @RequestMapping(value="/poc1ApiError") public PocResult poc1APIError() throws java.io.IOException
java.io.IOException
- on each call to test internal problems@RequestMapping(value="/poc1ApiErrorNoPaywall") public PocResult poc1APIErrorNoPaywall() throws java.io.IOException
java.io.IOException
- on each call to test internal problems