Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2013 Jeanfrancois Arcand
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  * use this file except in compliance with the License. You may obtain a copy of
  * the License at
  *
  * http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.atmosphere.wasync;
Define a request for Socket. This class cannot be instantiated. Instead, use the RequestBuilder

Author(s):
Jeanfrancois Arcand
public interface Request {
    public enum METHOD {GET, POST, TRACE, PUT, DELETE, OPTIONS}
    public enum TRANSPORT {WEBSOCKET, SSE, STREAMING, LONG_POLLING}

    
The list of transports to try

    List<TRANSPORTtransport();

    
The method

Returns:
a Request.METHOD
    METHOD method();

    
Return the list of headers

Returns:
a Map of headers
    Map<StringCollection<String>> headers();

    
Return the list of query params

Returns:
a Map of headers
    Map<StringList<String>> queryString();

    
The list of Encoder to use before the request is sent.

Returns:
The list of Encoder
    List<Encoder<?,?>> encoders();

    
The list of Decoder to use before the request is sent.

Returns:
The list of Decoder
    List<Decoder<?,?>> decoders();

    
The targetted URI

Returns:
the targetted URI
    String uri();

    
The FunctionResolver associated with that request.

Returns:
The FunctionResolver
New to GrepCode? Check out our FAQ X