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.impl;
import static org.atmosphere.wasync.impl.AtmosphereRequest.AtmosphereRequestBuilder;

A specialized org.atmosphere.wasync.Client for the Atmosphere Framework. This client support the Atmosphere Protocol.
An AtmosphereRequest.AtmosphereRequestBuilder will be created and Atmosphere's specific protocol information can be set using this object.

Author(s):
Jeanfrancois Arcand
    public AtmosphereClient() {
    }

    
    @Override
    public Socket create() {
        return ClientUtil.create(AtmosphereSocket.class);
    }

    
    @Override
    public Socket create(DefaultOptions options) {
        return ClientUtil.create(optionsAtmosphereSocket.class);
    }

    
    @Override
        AtmosphereRequestBuilder b;
        try {
            b = clazz.newInstance();
        } catch (InstantiationException e) {
            throw new RuntimeException(e);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }
    }

    
    @Override
        return new DefaultOptionsBuilder();
    }

    
    @Override
    }
New to GrepCode? Check out our FAQ X