001 package com.nimbusds.oauth2.sdk; 002 003 004 import com.nimbusds.oauth2.sdk.http.HTTPResponse; 005 006 007 /** 008 * Response message, serialises to an HTTP response. 009 * 010 * @author Vladimir Dzhuvinov 011 */ 012 public interface Response extends Message { 013 014 015 /** 016 * Returns the matching HTTP response. 017 * 018 * @return The HTTP response. 019 * 020 * @throws SerializeException If the response message couldn't be 021 * serialised to an HTTP response. 022 */ 023 public HTTPResponse toHTTPResponse() 024 throws SerializeException; 025 } 026 027