Package com.draagon.wii.util

Examples of com.draagon.wii.util.NameValuePair


      if ( name.compareToIgnoreCase( "accept-encoding" ) == 0 )
        headers.remove( pair );
    }   

    // Always close the connection
    headers.add( new NameValuePair( "Connection", "close" ));
    headers.add( new NameValuePair( "Accept-Encoding", "" ));

    // WII HTML Specific
    headers.add( new NameValuePair( "X-WII-URL", req.getWIIURL() ));
    headers.add( new NameValuePair( "X-WII-Site-URL", req.getSiteURL() ));
  }
View Full Code Here


      String def_role = creds[ 2 ];
      String roles = creds[ 3 ];

      // Add the headers to the returned vector
      if ( user != null )
          headers.add( new NameValuePair( "X-WII-User", user ));
      //if ( pass != null )
      //    headers.addElement( new NameValuePair( "X-WII-Pass", pass ));
      if ( def_role != null )
          headers.add( new NameValuePair( "X-WII-Default-Role", def_role ));
      if ( roles != null )
          headers.add( new NameValuePair( "X-WII-Roles", roles ));
  }
View Full Code Here

    for ( Enumeration<String> e = mReq.getHeaderNames(); e.hasMoreElements(); )
    {
      String name = (String) e.nextElement();
      String value = mReq.getHeader( name );

      tmp.add( new NameValuePair( name, value ));
    }

    return tmp;
  }
View Full Code Here

               && name.compareToIgnoreCase( "Transfer-Encoding" ) != 0
               && name.compareToIgnoreCase( "Content-Length" ) != 0
               && name.compareToIgnoreCase( "Content-Type" ) != 0
             )
          {
            mHeaders.add( new NameValuePair( name, value ));
          }

          i++;
      }
View Full Code Here

TOP

Related Classes of com.draagon.wii.util.NameValuePair

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.