Example usage for org.apache.commons.lang3 StringUtils capitalize

List of usage examples for org.apache.commons.lang3 StringUtils capitalize

Introduction

In this page you can find the example usage for org.apache.commons.lang3 StringUtils capitalize.

Prototype

public static String capitalize(final String str) 

Source Link

Document

Capitalizes a String changing the first letter to title case as per Character#toTitleCase(char) .

Usage

From source file:org.apache.olingo.fit.Demo.java

public Demo() throws IOException {
    super(new Metadata(FSManager.instance()
            .readRes("demo" + StringUtils.capitalize(Constants.get(ConstantKey.METADATA)), Accept.XML)));
}

From source file:org.apache.olingo.fit.Demo.java

@GET
@Path("/$metadata")
@Produces(MediaType.APPLICATION_XML)//from   w  ww  . j av  a 2s .c  o  m
@Override
public Response getMetadata() {
    return super.getMetadata("demo" + StringUtils.capitalize(Constants.get(ConstantKey.METADATA)));
}

From source file:org.apache.olingo.fit.OpenType.java

public OpenType() throws IOException {
    super(new Metadata(FSManager.instance()
            .readRes("openType" + StringUtils.capitalize(Constants.get(ConstantKey.METADATA)), Accept.XML)));
}

From source file:org.apache.olingo.fit.OpenType.java

/**
 * Provide sample large metadata./*  w w w  .jav a  2s.c o m*/
 *
 * @return metadata.
 */
@GET
@Path("/$metadata")
@Produces(MediaType.APPLICATION_XML)
@Override
public Response getMetadata() {
    return super.getMetadata("openType" + StringUtils.capitalize(Constants.get(ConstantKey.METADATA)));
}

From source file:org.apache.olingo.fit.V3ActionOverloading.java

public V3ActionOverloading() throws IOException {
    super(new Metadata(FSManager.instance(ODataServiceVersion.V30).readRes(
            "actionOverloading"
                    + StringUtils.capitalize(Constants.get(ODataServiceVersion.V30, ConstantKey.METADATA)),
            Accept.XML), ODataServiceVersion.V30));
}

From source file:org.apache.olingo.fit.V3ActionOverloading.java

@GET
@Path("/$metadata")
@Produces(MediaType.APPLICATION_XML)/*w  ww  . j  av  a 2s.co m*/
@Override
public Response getMetadata() {
    return super.getMetadata("actionOverloading"
            + StringUtils.capitalize(Constants.get(ODataServiceVersion.V30, ConstantKey.METADATA)));
}

From source file:org.apache.olingo.fit.V3OpenType.java

public V3OpenType() throws IOException {
    super(new Metadata(FSManager.instance(ODataServiceVersion.V30).readRes(
            "openType" + StringUtils.capitalize(Constants.get(ODataServiceVersion.V30, ConstantKey.METADATA)),
            Accept.XML), ODataServiceVersion.V30));
}

From source file:org.apache.olingo.fit.V3OpenType.java

/**
 * Provide sample large metadata./*from  w  ww  .  ja  v  a2  s  . com*/
 *
 * @return metadata.
 */
@GET
@Path("/$metadata")
@Produces(MediaType.APPLICATION_XML)
@Override
public Response getMetadata() {
    return super.getMetadata(
            "openType" + StringUtils.capitalize(Constants.get(ODataServiceVersion.V30, ConstantKey.METADATA)));
}

From source file:org.apache.olingo.fit.V3Services.java

/**
 * Provide sample large metadata./*w ww.j  a  v  a  2 s .c om*/
 *
 * @return metadata.
 */
@GET
@Path("/large/$metadata")
@Produces(MediaType.APPLICATION_XML)
public Response getLargeMetadata() {
    return getMetadata("large" + StringUtils.capitalize(Constants.get(version, ConstantKey.METADATA)));
}

From source file:org.apache.olingo.fit.V4Demo.java

public V4Demo() throws IOException {
    super(new Metadata(FSManager.instance(ODataServiceVersion.V40).readRes(
            "demo" + StringUtils.capitalize(Constants.get(ODataServiceVersion.V40, ConstantKey.METADATA)),
            Accept.XML), ODataServiceVersion.V40));
}