Examples of URLType


Examples of net.sourceforge.cardme.vcard.types.UrlType

  }
 
  @Test
  public void testBuildUrlType() throws VCardBuildException {
    VCardImpl vcard = getSimpleVCard();
    vcard.addUrl(new UrlType("http://www.sun.com"));
    vcard.addUrl(new UrlType("this is free form text."));
   
    VCardWriter vcardWriter = new VCardWriter();
    vcardWriter.setOutputVersion(VCardVersion.V3_0);
    vcardWriter.setCompatibilityMode(CompatibilityMode.RFC2426);
    vcardWriter.setFoldingScheme(FoldingScheme.MIME_DIR);
View Full Code Here

Examples of net.sourceforge.cardme.vcard.types.UrlType

   * @param vcard
   * @throws VCardParseException
   */
  private void parseUrlType(String group, String value, List<ParameterType> paramTypeList, VCardImpl vcard) throws VCardParseException {
    try {
      UrlType urlType = new UrlType();
      parseParamTypes(urlType, paramTypeList, value, VCardTypeName.URL);
     
      if(urlType.isQuotedPrintable()) {
        value = decodeQuotedPrintableValue(urlType, value);
      }
     
      if(group != null) {
        urlType.setGroup(group);
      }
     
      urlType.setRawUrl(VCardUtils.unescapeString(value));
      vcard.addUrl(urlType);
    }
    catch(Exception ex) {
      throw new VCardParseException("UrlType ("+VCardTypeName.URL.getType()+") ["+ex.getClass().getName()+"] "+ex.getMessage(), ex);
    }
View Full Code Here

Examples of net.sourceforge.cardme.vcard.types.UrlType

 
  @Test
  public void testURL() throws VCardBuildException {
    VCardImpl vcard = new VCardImpl();
    appyBasicName(vcard);
    vcard.addUrl(new UrlType("http://www.example.org/"));
    String result = getSerializedString(vcard);
    assertTrue(result.contains("URL:http://www.example.org/"));
   
    vcard.addUrl(new UrlType("ftp://ftp.example.org/"));
    result = getSerializedString(vcard);
    assertTrue(result.contains("URL:ftp://ftp.example.org/"));
   
    vcard.addUrl(new UrlType("this is free form text"));
    result = getSerializedString(vcard);
    assertTrue(result.contains("URL:this is free form text"));
  }
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.URLType

      return tokenstr;
   }

  private static URLType getURLType(String accessuri) {
       String acc = accessuri.toLowerCase();
    URLType uri = URLType.OTHER;
    if (acc.startsWith("http:"))
      uri = URLType.HTTP;
    else if (acc.startsWith("https:"))
      uri = URLType.HTTPS;
    else if (acc.startsWith("ftp:"))
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.URLType

      return tokenstr;
   }

  private static URLType getURLType(String accessuri) {
       String acc = accessuri.toLowerCase();
    URLType uri = URLType.OTHER;
    if (acc.startsWith("http:"))
      uri = URLType.HTTP;
    else if (acc.startsWith("https:"))
      uri = URLType.HTTPS;
    else if (acc.startsWith("ftp:"))
View Full Code Here

Examples of org.apache.xmpbox.type.URLType

     * @param url
     *            the Base url value to set
     */
    public void setBaseURL(String url)
    {
        URLType tt = (URLType) instanciateSimple(BASEURL, url);
        setBaseURLProperty(tt);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.URLType

    protected void testGetSetURLProperty() throws Exception
    {
        String setName = setMethod(property);
        String getName = getMethod(property);

        URLType tt = metadata.getTypeMapping().createURL(null, schema.getPrefix(), property, (String) value);
        Method setMethod = schemaClass.getMethod(setName, URLType.class);
        Method getMethod = schemaClass.getMethod(getName);

        setMethod.invoke(schema, tt);
        String found = ((TextType) getMethod.invoke(schema)).getStringValue();
View Full Code Here

Examples of org.apache.xmpbox.type.URLType

     * @param url
     *            WebStatemen url value to set
     */
    public void setWebStatement(String url)
    {
        URLType tt = (URLType) instanciateSimple(WEBSTATEMENT, url);
        setWebStatementProperty(tt);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.URLType

     * @param url
     *            certficate url value to set
     */
    public void setCertificate(String url)
    {
        URLType tt = (URLType) instanciateSimple(CERTIFICATE, url);
        setCertificateProperty(tt);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.URLType

     * @param url
     *            DocumentId value to set
     */
    public void setLastURL(String url)
    {
        URLType tt = (URLType) instanciateSimple(LAST_URL, url);
        setLastURLProperty(tt);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.