/** * Create a new Jersey container response context. * * @param requestContext associated container request context. * @param response response instance initializing the response context. */ ContainerResponse(final ContainerRequest requestContext, final OutboundJaxrsResponse response) { this.requestContext = requestContext; this.requestContext.inResponseProcessing(); this.status = response.getStatusInfo(); this.messageContext = response.getContext(); final String varyValue = requestContext.getVaryValue(); if (varyValue != null && !this.messageContext.getHeaders().containsKey(HttpHeaders.VARY)) { /** * Add a Vary header using the value computed in the request if present * and if the Vary header was not explicitly set in the response already. */ this.messageContext.getHeaders().add(HttpHeaders.VARY, varyValue); } }
/** * Create a new Jersey container response context. * * @param requestContext associated container request context. * @param response response instance initializing the response context. */ ContainerResponse(final ContainerRequest requestContext, final OutboundJaxrsResponse response) { this.requestContext = requestContext; this.requestContext.inResponseProcessing(); this.status = response.getStatusInfo(); this.messageContext = response.getContext(); final String varyValue = requestContext.getVaryValue(); if (varyValue != null && !this.messageContext.getHeaders().containsKey(HttpHeaders.VARY)) { /** * Add a Vary header using the value computed in the request if present * and if the Vary header was not explicitly set in the response already. */ this.messageContext.getHeaders().add(HttpHeaders.VARY, varyValue); } }
/** * Create a new Jersey container response context. * * @param requestContext associated container request context. * @param response response instance initializing the response context. */ ContainerResponse(final ContainerRequest requestContext, final OutboundJaxrsResponse response) { this.requestContext = requestContext; this.requestContext.inResponseProcessing(); this.status = response.getStatusInfo(); this.messageContext = response.getContext(); final String varyValue = requestContext.getVaryValue(); if (varyValue != null && !this.messageContext.getHeaders().containsKey(HttpHeaders.VARY)) { /** * Add a Vary header using the value computed in the request if present * and if the Vary header was not explicitly set in the response already. */ this.messageContext.getHeaders().add(HttpHeaders.VARY, varyValue); } }
/** * Create a new Jersey container response context. * * @param requestContext associated container request context. * @param response response instance initializing the response context. */ ContainerResponse(final ContainerRequest requestContext, final OutboundJaxrsResponse response) { this.requestContext = requestContext; this.requestContext.inResponseProcessing(); this.status = response.getStatusInfo(); this.messageContext = response.getContext(); final String varyValue = requestContext.getVaryValue(); if (varyValue != null && !this.messageContext.getHeaders().containsKey(HttpHeaders.VARY)) { /** * Add a Vary header using the value computed in the request if present * and if the Vary header was not explicitly set in the response already. */ this.messageContext.getHeaders().add(HttpHeaders.VARY, varyValue); } }
/** * Create a new Jersey container response context. * * @param requestContext associated container request context. * @param response response instance initializing the response context. */ ContainerResponse(final ContainerRequest requestContext, final OutboundJaxrsResponse response) { this.requestContext = requestContext; this.requestContext.inResponseProcessing(); this.status = response.getStatusInfo(); this.messageContext = response.getContext(); final String varyValue = requestContext.getVaryValue(); if (varyValue != null && !this.messageContext.getHeaders().containsKey(HttpHeaders.VARY)) { /** * Add a Vary header using the value computed in the request if present * and if the Vary header was not explicitly set in the response already. */ this.messageContext.getHeaders().add(HttpHeaders.VARY, varyValue); } }
/** * Create a new Jersey container response context. * * @param requestContext associated container request context. * @param response response instance initializing the response context. */ ContainerResponse(final ContainerRequest requestContext, final OutboundJaxrsResponse response) { this.requestContext = requestContext; this.requestContext.inResponseProcessing(); this.status = response.getStatusInfo(); this.messageContext = response.getContext(); final String varyValue = requestContext.getVaryValue(); if (varyValue != null && !this.messageContext.getHeaders().containsKey(HttpHeaders.VARY)) { /** * Add a Vary header using the value computed in the request if present * and if the Vary header was not explicitly set in the response already. */ this.messageContext.getHeaders().add(HttpHeaders.VARY, varyValue); } }
/** * Create a new Jersey container response context. * * @param requestContext associated container request context. * @param response response instance initializing the response context. */ ContainerResponse(final ContainerRequest requestContext, final OutboundJaxrsResponse response) { this.requestContext = requestContext; this.requestContext.inResponseProcessing(); this.status = response.getStatusInfo(); this.messageContext = response.getContext(); final String varyValue = requestContext.getVaryValue(); if (varyValue != null && !this.messageContext.getHeaders().containsKey(HttpHeaders.VARY)) { /** * Add a Vary header using the value computed in the request if present * and if the Vary header was not explicitly set in the response already. */ this.messageContext.getHeaders().add(HttpHeaders.VARY, varyValue); } }