Uses of Class
com.atlassian.oai.validator.model.SimpleResponse.Builder
Packages that use SimpleResponse.Builder
-
Uses of SimpleResponse.Builder in com.atlassian.oai.validator.model
Methods in com.atlassian.oai.validator.model that return SimpleResponse.BuilderModifier and TypeMethodDescriptionstatic SimpleResponse.BuilderSimpleResponse.Builder.badRequest()A convenience method for creating aSimpleResponse.Builderwith the HTTP status code 400.static SimpleResponse.BuilderSimpleResponse.Builder.noContent()A convenience method for creating aSimpleResponse.Builderwith the HTTP status code 204.static SimpleResponse.BuilderSimpleResponse.Builder.notFound()A convenience method for creating aSimpleResponse.Builderwith the HTTP status code 404.static SimpleResponse.BuilderSimpleResponse.Builder.ok()A convenience method for creating aSimpleResponse.Builderwith the HTTP status code 200.static SimpleResponse.BuilderSimpleResponse.Builder.serverError()A convenience method for creating aSimpleResponse.Builderwith the HTTP status code 500.static SimpleResponse.BuilderSimpleResponse.Builder.status(int status) Creates aSimpleResponse.Builderwith the given HTTP status code.static SimpleResponse.BuilderSimpleResponse.Builder.unauthorized()A convenience method for creating aSimpleResponse.Builderwith the HTTP status code 401.SimpleResponse.Builder.withBody(byte[] content) Adds a response body as byte array to this builder.SimpleResponse.Builder.withBody(InputStream content) Adds a response body asInputStreamto this builder.Adds a response body to this builder.SimpleResponse.Builder.withContentType(String contentType) Sets the content type header on this builder.SimpleResponse.Builder.withHeader(String name, String... values) Adds a response header to this builder.SimpleResponse.Builder.withHeader(String name, List<String> values) Adds a response header to this builder.