Examples of UriType


Examples of org.apache.olingo.odata2.core.uri.UriType

  private List<String> getSupportedContentTypes(final UriInfoImpl uriInfo, final ODataHttpMethod method)
      throws ODataException {
    Class<? extends ODataProcessor> processorFeature = Dispatcher.mapUriTypeToProcessorFeature(uriInfo);
    if (ODataHttpMethod.POST.equals(method)) {
      UriType uriType = uriInfo.getUriType();
      if (uriType == UriType.URI1 || uriType == UriType.URI6B) {
        processorFeature = EntityProcessor.class;
      }
    }
    return service.getSupportedContentTypes(processorFeature);
View Full Code Here

Examples of org.apache.olingo.odata2.core.uri.UriType

      return create(fitTestSet, acceptHeader2ContentType);
    }

    public static List<FitTest> create(final FitTestSet fitTestSet,
        final Map<String, ContentType> acceptHeader2ContentType) {
      UriType uriType = fitTestSet.uriType;
      String httpMethod = fitTestSet.httpMethod;
      String path = fitTestSet.path;
      List<String> queryOptions = fitTestSet.queryOptions;
      List<String> acceptHeaders = fitTestSet.acceptHeader;
      String content = fitTestSet.content;
View Full Code Here

Examples of org.apache.olingo.odata2.core.uri.UriType

  }

  @Test
  public void testURI_1_ForIssue() throws Exception {
    // create test set
    UriType uriType = UriType.URI1;
    String httpMethod = "POST";
    String path = "/Employees";
    String queryOption = "";
    String acceptHeader = "*";
    String content = "IMAGE_;o)";
View Full Code Here

Examples of org.apache.xmpbox.type.URIType

        return tt == null ? null : tt.getStringValue();
    }

    public void setAncestorID(String text)
    {
        URIType tt = (URIType) instanciateSimple(ANCESTORID, text);
        setAncestorIDProperty(tt);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.URIType

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

        URIType tt = metadata.getTypeMapping().createURI(null, schema.getPrefix(), property, (String) value);
        Method setMethod = schemaClass.getMethod(setName, URIType.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.URIType

     * @param url
     *            DocumentId value to set
     */
    public void setDocumentID(String url)
    {
        URIType tt = (URIType) instanciateSimple(DOCUMENTID, url);
        setDocumentIDProperty(tt);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.URIType

     * @param value
     *            ManageTo Value to set
     */
    public void setManageTo(String value)
    {
        URIType tt = (URIType) instanciateSimple(MANAGETO, value);
        setManageToProperty(tt);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.URIType

     * @param value
     *            ManageUI value to set
     */
    public void setManageUI(String value)
    {
        URIType tt = (URIType) instanciateSimple(MANAGEUI, value);
        setManageUIProperty(tt);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.URIType

     * @param value
     *            InstanceId value to set
     */
    public void setInstanceID(String value)
    {
        URIType tt = (URIType) instanciateSimple(INSTANCEID, value);
        setInstanceIDProperty(tt);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.URIType

     * @param url
     *            DocumentId value to set
     */
    public void setDocumentID(String url)
    {
        URIType tt = (URIType) instanciateSimple(DOCUMENTID, url);
        setDocumentIDProperty(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.