public final class StaticResourceRequest extends ObjectSE
RequestMatcher
を作成するために使用されます。PathRequest.toStaticResources()
によって返されます。PathRequest
修飾子と型 | クラスと説明 |
---|---|
static class | StaticResourceRequest.StaticResourceRequestMatcher リソース Locations と照合するために使用されるリクエストマッチャー。 |
修飾子と型 | メソッドと説明 |
---|---|
StaticResourceRequest.StaticResourceRequestMatcher | at(SetSE<StaticResourceLocation> locations) 指定された Locations を含むマッチャーを返します。 |
StaticResourceRequest.StaticResourceRequestMatcher | at(StaticResourceLocation first, StaticResourceLocation... rest) 指定された Locations を含むマッチャーを返します。 |
StaticResourceRequest.StaticResourceRequestMatcher | atCommonLocations() 一般的に使用されるすべての Locations を含むマッチャーを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public StaticResourceRequest.StaticResourceRequestMatcher atCommonLocations()
Locations
を含むマッチャーを返します。excluding
メソッドは、必要に応じて特定の場所を削除するために使用できます。例:PathRequest.toStaticResources().atCommonLocations().excluding(StaticResourceLocation.CSS)
RequestMatcher
public StaticResourceRequest.StaticResourceRequestMatcher at(StaticResourceLocation first, StaticResourceLocation... rest)
Locations
を含むマッチャーを返します。例:PathRequest.toStaticResources().at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT)
first
- 含める最初の場所 rest
- 追加する場所 RequestMatcher
public StaticResourceRequest.StaticResourceRequestMatcher at(SetSE<StaticResourceLocation> locations)
Locations
を含むマッチャーを返します。例:PathRequest.toStaticResources().at(locations)
locations
- 含める場所 RequestMatcher