Class ResponseBuilder

java.lang.Object
io.micronaut.azure.function.http.ResponseBuilder
All Implemented Interfaces:
com.microsoft.azure.functions.HttpResponseMessage, com.microsoft.azure.functions.HttpResponseMessage.Builder, io.micronaut.core.convert.ConversionServiceProvider, io.micronaut.core.convert.value.ConvertibleMultiValues<String>, io.micronaut.core.convert.value.ConvertibleValues<List<String>>, io.micronaut.core.type.Headers, io.micronaut.core.value.ValueResolver<CharSequence>, io.micronaut.http.HttpHeaders, Iterable<Map.Entry<String,List<String>>>

@Internal public class ResponseBuilder extends Object implements com.microsoft.azure.functions.HttpResponseMessage.Builder, com.microsoft.azure.functions.HttpResponseMessage, io.micronaut.http.HttpHeaders
Response builder implementation. Used for testing.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.microsoft.azure.functions.HttpResponseMessage

    com.microsoft.azure.functions.HttpResponseMessage.Builder
  • Field Summary

    Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues

    EMPTY

    Fields inherited from interface io.micronaut.http.HttpHeaders

    ACCEPT, ACCEPT_CH, ACCEPT_CH_LIFETIME, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACCEPT_PATCH, ACCEPT_RANGES, ACCESS_CONTROL_ALLOW_CREDENTIALS, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK, ACCESS_CONTROL_EXPOSE_HEADERS, ACCESS_CONTROL_MAX_AGE, ACCESS_CONTROL_REQUEST_HEADERS, ACCESS_CONTROL_REQUEST_METHOD, ACCESS_CONTROL_REQUEST_PRIVATE_NETWORK, AGE, ALLOW, AUTHORIZATION, AUTHORIZATION_INFO, CACHE_CONTROL, CONNECTION, CONTENT_BASE, CONTENT_DISPOSITION, CONTENT_DPR, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_RANGE, CONTENT_TRANSFER_ENCODING, CONTENT_TYPE, COOKIE, CROSS_ORIGIN_RESOURCE_POLICY, DATE, DEVICE_MEMORY, DOWNLINK, DPR, ECT, ETAG, EXPECT, EXPIRES, FEATURE_POLICY, FORWARDED, FROM, HOST, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_RANGE, IF_UNMODIFIED_SINCE, LAST_MODIFIED, LINK, LOCATION, MAX_FORWARDS, ORIGIN, PRAGMA, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, RANGE, REFERER, REFERRER_POLICY, RETRY_AFTER, RTT, SAVE_DATA, SEC_WEBSOCKET_ACCEPT, SEC_WEBSOCKET_KEY, SEC_WEBSOCKET_KEY1, SEC_WEBSOCKET_KEY2, SEC_WEBSOCKET_LOCATION, SEC_WEBSOCKET_ORIGIN, SEC_WEBSOCKET_PROTOCOL, SEC_WEBSOCKET_VERSION, SERVER, SET_COOKIE, SET_COOKIE2, SOURCE_MAP, STANDARD_HEADERS, TE, TRAILER, TRANSFER_ENCODING, UPGRADE, USER_AGENT, VARY, VIA, VIEWPORT_WIDTH, WARNING, WEBSOCKET_LOCATION, WEBSOCKET_ORIGIN, WEBSOCKET_PROTOCOL, WIDTH, WWW_AUTHENTICATE, X_AUTH_TOKEN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.microsoft.azure.functions.HttpResponseMessage.Builder
    body(Object body)
     
    com.microsoft.azure.functions.HttpResponseMessage
     
     
    <T> Optional<T>
    get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext)
     
     
     
     
    com.microsoft.azure.functions.HttpStatusType
     
    com.microsoft.azure.functions.HttpResponseMessage.Builder
    header(String key, String value)
     
     
    com.microsoft.azure.functions.HttpResponseMessage.Builder
    status(com.microsoft.azure.functions.HttpStatusType status)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.convert.value.ConvertibleMultiValues

    forEach, forEachValue, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator

    Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues

    asMap, asMap, asProperties, contains, getConversionService, getValue, getValueType, subMap, subMap, subMap

    Methods inherited from interface io.micronaut.http.HttpHeaders

    accept, acceptCharset, acceptLanguage, contentLength, contentType, findAcceptCharset, findAcceptLanguage, findDate, findFirst, findInt, getAuthorization, getContentType, getDate, getInt, getOrigin, isKeepAlive

    Methods inherited from interface com.microsoft.azure.functions.HttpResponseMessage

    getStatusCode

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface io.micronaut.core.value.ValueResolver

    get, get, get
  • Constructor Details

    • ResponseBuilder

      public ResponseBuilder()
  • Method Details

    • status

      public com.microsoft.azure.functions.HttpResponseMessage.Builder status(com.microsoft.azure.functions.HttpStatusType status)
      Specified by:
      status in interface com.microsoft.azure.functions.HttpResponseMessage.Builder
    • header

      public com.microsoft.azure.functions.HttpResponseMessage.Builder header(String key, String value)
      Specified by:
      header in interface com.microsoft.azure.functions.HttpResponseMessage.Builder
    • body

      public com.microsoft.azure.functions.HttpResponseMessage.Builder body(Object body)
      Specified by:
      body in interface com.microsoft.azure.functions.HttpResponseMessage.Builder
    • build

      public com.microsoft.azure.functions.HttpResponseMessage build()
      Specified by:
      build in interface com.microsoft.azure.functions.HttpResponseMessage.Builder
    • getStatus

      public com.microsoft.azure.functions.HttpStatusType getStatus()
      Specified by:
      getStatus in interface com.microsoft.azure.functions.HttpResponseMessage
    • getHeader

      public String getHeader(String key)
      Specified by:
      getHeader in interface com.microsoft.azure.functions.HttpResponseMessage
    • getBody

      public Object getBody()
      Specified by:
      getBody in interface com.microsoft.azure.functions.HttpResponseMessage
    • getAll

      public List<String> getAll(CharSequence name)
      Specified by:
      getAll in interface io.micronaut.core.convert.value.ConvertibleMultiValues<String>
    • get

      public String get(CharSequence name)
      Specified by:
      get in interface io.micronaut.core.convert.value.ConvertibleMultiValues<String>
    • names

      public Set<String> names()
      Specified by:
      names in interface io.micronaut.core.convert.value.ConvertibleValues<List<String>>
    • values

      public Collection<List<String>> values()
      Specified by:
      values in interface io.micronaut.core.convert.value.ConvertibleValues<List<String>>
    • get

      public <T> Optional<T> get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext)
      Specified by:
      get in interface io.micronaut.core.value.ValueResolver<CharSequence>