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