本文整理汇总了Java中org.sakaiproject.entitybroker.entityprovider.extension.Formats.XML属性的典型用法代码示例。如果您正苦于以下问题:Java Formats.XML属性的具体用法?Java Formats.XML怎么用?Java Formats.XML使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.sakaiproject.entitybroker.entityprovider.extension.Formats
的用法示例。
在下文中一共展示了Formats.XML属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testFormatAndOutputEntity
@Test
public void testFormatAndOutputEntity() {
// test no provider
String reference = TestData.REF4;
OutputStream output = new ByteArrayOutputStream();
String format = Formats.XML;
try {
entityBroker.formatAndOutputEntity(reference, format, null, output, null);
Assert.fail("Should have died");
} catch (UnsupportedOperationException e) {
Assert.assertNotNull(e.getMessage());
}
}
示例2: getHandledOutputFormats
public String[] getHandledOutputFormats() {
return new String[] {Formats.XML, Formats.JSON};
}
示例3: getHandledInputFormats
public String[] getHandledInputFormats() {
return new String[] {Formats.HTML, Formats.XML, Formats.JSON};
}
示例4: getHandledOutputFormats
public String[] getHandledOutputFormats() {
return new String[] { Formats.XML, Formats.JSON };
}
示例5: getHandledInputFormats
public String[] getHandledInputFormats() {
return new String[] { Formats.HTML, Formats.XML, Formats.JSON };
}
示例6: getHandledOutputFormats
public String[] getHandledOutputFormats() {
return new String[] { Formats.XML, Formats.HTML, Formats.JSON };
}
示例7: getHandledOutputFormats
public String[] getHandledOutputFormats() {
return new String[] {Formats.XML, Formats.JSON, Formats.HTML };
}
示例8: getHandledOutputFormats
public String[] getHandledOutputFormats() {
// TODO Auto-generated method stub
return new String[] {Formats.JSON, Formats.XML};
}
示例9: getHandledInputFormats
public String[] getHandledInputFormats() {
return new String[] { Formats.HTML, Formats.XML, Formats.JSON };
}
示例10: getHandledOutputFormats
public String[] getHandledOutputFormats() {
return new String[] { Formats.XML, Formats.JSON, Formats.HTML, Formats.FORM };
}
示例11: getHandledOutputFormats
@Override
public String[] getHandledOutputFormats() {
return new String[] { Formats.XML, Formats.JSON};
}
示例12: getHandledOutputFormats
public String[] getHandledOutputFormats() {
return new String[] { Formats.XML, Formats.JSON };
}
示例13: xmlRedirector
@EntityURLRedirect("/{prefix}/xml/{id}")
public String xmlRedirector(String incomingURL, Map<String, String> values) {
return values.get(EntityView.PREFIX) +
EntityView.SEPARATOR + values.get(EntityView.ID) + EntityView.PERIOD + Formats.XML;
}
示例14: getHandledInputFormats
public String[] getHandledInputFormats() {
return new String[] { Formats.XML, Formats.JSON, Formats.HTML };
}
示例15: getHandledInputFormats
public String[] getHandledInputFormats() {
return new String[]{Formats.HTML, Formats.XML, Formats.JSON,
Formats.FORM};
}