... | @@ -53,7 +53,7 @@ The following capabilities exist: |
... | @@ -53,7 +53,7 @@ The following capabilities exist: |
|
* Stream HTTP return values are of type `application/octet-stream`.
|
|
* Stream HTTP return values are of type `application/octet-stream`.
|
|
* Stream parameters are only supported for POST multipart requests. Stream parts are of type `application/octet-stream`.
|
|
* Stream parameters are only supported for POST multipart requests. Stream parts are of type `application/octet-stream`.
|
|
|
|
|
|
* You __can omit parameters in a request__. In this case, the default value of the parameter type is used. You can overwrite this behavior by setting your __own parameter default values__ with the `@DefaultValue` annotation in the handler code:
|
|
* You __can omit parameters in a request__. In this case, the default value of the parameter type is used. You can overwrite this behavior by setting your __own parameter default values__ with the `@DefaultValue` annotation in the handler code. Default values are in transport representation, i.e. primitives or Json for complex types:
|
|
```java
|
|
```java
|
|
public void myMethod( @DefaultValue("defaultVal") String stringParam, @DefaultValue("23") int numParam)
|
|
public void myMethod( @DefaultValue("defaultVal") String stringParam, @DefaultValue("23") int numParam)
|
|
```
|
|
```
|
... | | ... | |