---
schema_version: "1"
id: bde7fa67271968bf41211f577ebe8d238f47a983f6b66bfe97c78c089c5878b1
title: メッセージソースのパラメーターの定義
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mule-sdk/1.1/sources-parameters.md
canonical_url: https://docs.mulesoft.com/jp/mule-sdk/1.1/sources-parameters
source_site: docs.mulesoft.com
content_type: documentation
content_hash: bf57c7a7434740423c5a1ec5701efebd0db02fbc8bfa53131139eec559190bc8
description: MuleSoft Documentation Site
release: "1.1"
latest: false
---
# メッセージソースのパラメーターの定義

パラメーターは、​`Source`​ クラスの項目として定義されます。操作を定義するときにすべての機能とアノテーション (​`@NullSafe`​、​`@ParameterGroup`​、​`@TypeResolver`​ など) を使用できます。次に例を示します。

```java
@EmitsResponse
public class HttpListener extends Source<InputStream, HttpRequestAttributes> {

    @Config
    private HttpListenerConfig config;

    @Parameter
    @Optional(defaultValue = "/")
    private String path;

    @Parameter
    private Integer port;

    /**
    * Comma separated list of allowed HTTP methods by this listener.
    */
    @Parameter
    @Optional
    @Placement(tab = Placement.ADVANCED_TAB)
    @Summary("Comma separated list of methods. Leave empty to allow all.")
    @Example("GET, POST")
    private String allowedMethods;
}
```

これは設定の定義方法と似ていますが、これらのどのパラメーターでも式を受け入れないという点が異なります。式のサポートが必要な ​`@Expression`​ アノテーションを使用するとエラーになります。

## [](#次のステップ)次のステップ

- [メッセージソースのライフサイクル](https://docs.mulesoft.com/jp/mule-sdk/1.1/sources-lifecycle)