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     */
014    public interface Request extends Message {
015    
016    
017            /**
018             * Returns the matching HTTP request.
019             *
020             * @param url The URL of the HTTP endpoint for which the request is
021             *            intended. Must not be {@code null}.
022             *
023             * @return The HTTP request.
024             *
025             * @throws SerializeException If the request message couldn't be
026             *                            serialised to an HTTP request.
027             */
028            public HTTPRequest toHTTPRequest(final URL url) 
029                    throws SerializeException;
030    }
031    
032