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 * @version $version$ (2013-01-28) 012 */ 013 public interface Response extends Message { 014 015 016 /** 017 * Returns the matching HTTP response. 018 * 019 * @return The HTTP response. 020 * 021 * @throws SerializeException If the response message couldn't be 022 * serialised to an HTTP response. 023 */ 024 public HTTPResponse toHTTPResponse() 025 throws SerializeException; 026 } 027 028