001    package com.nimbusds.oauth2.sdk;
002    
003    
004    import java.net.URL;
005    
006    import com.nimbusds.oauth2.sdk.http.HTTPRequest;
007    
008    
009    /**
010     * Request message, serialises to an HTTP request.
011     *
012     * @author Vladimir Dzhuvinov
013     * @version $version$ (2013-05-10)
014     */
015    public interface Request extends Message {
016    
017    
018            /**
019             * Returns the matching HTTP request.
020             *
021             * @param url The URL of the HTTP endpoint for which the request is
022             *            intended. Must not be {@code null}.
023             *
024             * @return The HTTP request.
025             *
026             * @throws SerializeException If the request message couldn't be
027             *                            serialised to an HTTP request.
028             */
029            public HTTPRequest toHTTPRequest(final URL url) 
030                    throws SerializeException;
031    }
032    
033