Package com.google.gdata.wireformats

Examples of com.google.gdata.wireformats.AltFormat$Builder


   * @throws IOException
   */
  protected void writeRequestData(GDataRequest req,
      ClientOutputProperties outProps, Object source) throws IOException {

    AltFormat outputFormat = altRegistry.lookupType(outProps.getContentType());
    if (outputFormat == null) {
      // If no registered type, see if the target service supports media
      outputFormat = altRegistry.lookupName(AltFormat.MEDIA.getName());
    }
    if (outputFormat == null) {
View Full Code Here


    Preconditions.checkNotNull("resultType", resultType);

    InputProperties inputProperties =
      new ClientInputProperties(req, resultType);

    AltFormat inputFormat = null;
    String alt = inputProperties.getQueryParameter(GDataProtocol.Parameter.ALT);
    if (alt != null) {
      inputFormat = altRegistry.lookupName(alt);
    }
    if (inputFormat == null) {
View Full Code Here

     *
     * @return alternate representation format for current request
     */
    protected AltFormat getAltFormat() {
      String altName = queryMap.getFirst(GDataProtocol.Parameter.ALT);
      AltFormat altFormat = getAltRegistry().lookupName(altName);
      return altFormat != null ? altFormat : AltFormat.ATOM;
    }
View Full Code Here

TOP

Related Classes of com.google.gdata.wireformats.AltFormat$Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.