クラスの使用
jakarta.ws.rs.WebApplicationException
WebApplicationException を使用するパッケージ パッケージ 説明 jakarta.ws.rs RESTful サービスリソースの作成に使用される高レベルのインターフェースとアノテーション。jakarta.ws.rs.core RESTful サービスリソースの作成に使用される低レベルのインターフェースとアノテーション。jakarta.ws.rs.ext JAX-RS API でサポートされる型の拡張を提供する API。jakarta.ws.rs 内の WebApplicationException 使用
jakarta.ws.rs 内の WebApplicationException サブクラス 修飾子と型 クラス 説明 class
BadRequestException
bad client request
を示す実行時例外。class
ClientErrorException
クライアントリクエストエラーを示す基本ランタイムアプリケーション例外(HTTP4xx
ステータスコード)。class
ForbiddenException
クライアントによってリクエストされたリソースへのアクセスがサーバーによってforbidden
であったことを示す実行時例外。class
InternalServerErrorException
internal server error
を示す実行時例外。class
NotAcceptableException
サーバーによるクライアントリクエストがnot acceptable
であることを示す実行時例外。class
NotAllowedException
not allowed
であるリソースメソッドをリクエストしているクライアントを示す実行時例外。class
NotAuthorizedException
次のシナリオのいずれかが原因でリクエストの認可が失敗したことを示すランタイム例外: クライアントが、リクエストされたリソースにアクセスするために必要な認可の認証情報を送信しませんでした。class
NotFoundException
クライアントによってリクエストされたリソースを示すランタイム例外は、サーバー上のnot found
でした。class
NotSupportedException
クライアントリクエストエンティティのメディア型がnot supported
であることを示す実行時例外。class
RedirectionException
リクエストのリダイレクトを示すランタイムアプリケーション例外(HTTP3xx
ステータスコード)。class
ServerErrorException
サーバーエラーを示すベースランタイムアプリケーション例外(HTTP5xx
ステータスコード)。class
ServiceUnavailableException
リクエストされたリソースcannot be served
を示す実行時例外。jakarta.ws.rs.core 内の WebApplicationException 使用
WebApplicationException をスローする jakarta.ws.rs.core のメソッド 修飾子と型 メソッド 説明 EntityPart
EntityPart.Builder. build()
指定されたプロパティ値を使用して、新しい EntityPart インスタンスを構築します。<T> T
EntityPart. getContent(GenericType<T> type)
このパーツのコンテンツストリームを指定された型に変換して返します。<T> T
EntityPart. getContent(ClassSE<T> type)
このパーツのコンテンツストリームを指定されたクラスに変換して返します。void
StreamingOutput. write(OutputStreamSE output)
メッセージ本文を書き込むために呼び出されます。jakarta.ws.rs.ext 内の WebApplicationException 使用
WebApplicationException をスローする jakarta.ws.rs.ext のメソッド 修飾子と型 メソッド 説明 ObjectSE
ReaderInterceptor. aroundReadFrom(ReaderInterceptorContext context)
void
WriterInterceptor. aroundWriteTo(WriterInterceptorContext context)
ObjectSE
ReaderInterceptorContext. proceed()
チェーンの次のインターセプターに進みます。void
WriterInterceptorContext. proceed()
チェーンの次のインターセプターに進みます。T
MessageBodyReader. readFrom(ClassSE<T> type, TypeSE genericType, AnnotationSE[] annotations, MediaType mediaType, MultivaluedMap<StringSE,StringSE> httpHeaders, InputStreamSE entityStream)
InputStream
SE から型を読み取ります。void
MessageBodyWriter. writeTo(T t, ClassSE<?> type, TypeSE genericType, AnnotationSE[] annotations, MediaType mediaType, MultivaluedMap<StringSE,ObjectSE> httpHeaders, OutputStreamSE entityStream)
型を HTTP メッセージに書き込みます。