Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.common.http.impl
Class RIDCHttpPartImpl<T>

java.lang.Object
  extended by oracle.stellent.ridc.common.http.impl.RIDCHttpPartImpl<T>

Type Parameters:
T -
All Implemented Interfaces:
RIDCHttpPart<T>

public class RIDCHttpPartImpl<T>
extends Object
implements RIDCHttpPart<T>

RIDC HTTP Part Implementation


Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.stellent.ridc.common.http.RIDCHttpPart
RIDCHttpPart.PartType

 

Constructor Summary
RIDCHttpPartImpl(String name, T content)
          Create a HTTP Part
RIDCHttpPartImpl(String name, T content, String encoding)
          Create a HTTP part with a specific encoding

 

Method Summary
 T getContent()
          Return the content of the part
 String getEncoding()
          Get the encoding of the part, default is UTF-8
 String getName()
          Return the name of the part
 RIDCHttpPart.PartType getType()
          Return the type of the part
protected  void setEncoding(String encoding)
          Set the content encoding
protected  void setName(String name)
          Set the name of the part

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

RIDCHttpPartImpl

public RIDCHttpPartImpl(String name,
                        T content)
Create a HTTP Part
Parameters:
name - part name
content - part content

RIDCHttpPartImpl

public RIDCHttpPartImpl(String name,
                        T content,
                        String encoding)
Create a HTTP part with a specific encoding
Parameters:
name - part name
content - part content
encoding - part encoding

Method Detail

getContent

public T getContent()
Return the content of the part
Specified by:
getContent in interface RIDCHttpPart<T>
Returns:
either a string or a TransferFile

getType

public RIDCHttpPart.PartType getType()
Return the type of the part
Specified by:
getType in interface RIDCHttpPart<T>
Returns:
type of the part (either string or file)

getName

public String getName()
Return the name of the part
Specified by:
getName in interface RIDCHttpPart<T>
Returns:
the name

setName

protected void setName(String name)
Set the name of the part
Parameters:
name -

getEncoding

public String getEncoding()
Get the encoding of the part, default is UTF-8
Specified by:
getEncoding in interface RIDCHttpPart<T>
Returns:
the encoding, default is UTF-8

setEncoding

protected void setEncoding(String encoding)
Set the content encoding
Parameters:
encoding -

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.