NetKernel APIs


org.ten60.netkernel.layer1.representation
Class MultiPartAspect

java.lang.Object
  extended byorg.ten60.netkernel.layer1.representation.MultiPartAspect
All Implemented Interfaces:
IAspectMultipart, IURAspect

public class MultiPartAspect
extends Object
implements IAspectMultipart

Aspect for holding multiple sub-representations.
Usage example see HTTP cookies


Constructor Summary
MultiPartAspect()
           
MultiPartAspect(Map aParts)
          Creates a new instance of MultiPartAspect
 
Method Summary
 void addPart(String aName, IURRepresentation aPart)
          Add a named part.
static IURRepresentation create(IURRepresentation aPrimary, Map aOthers)
          A convenience helper to create an IURRepresentation with all aspects from the primary plus a MultiPartAspect containing the list of other aspects
 String[] getPartNames()
           
 IURRepresentation[] getParts()
           
 IURRepresentation getPartWithName(String aName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPartAspect

public MultiPartAspect()

MultiPartAspect

public MultiPartAspect(Map aParts)
Creates a new instance of MultiPartAspect

Method Detail

addPart

public void addPart(String aName,
                    IURRepresentation aPart)
Add a named part.


getPartWithName

public IURRepresentation getPartWithName(String aName)
Specified by:
getPartWithName in interface IAspectMultipart

getPartNames

public String[] getPartNames()
Specified by:
getPartNames in interface IAspectMultipart

getParts

public IURRepresentation[] getParts()
Specified by:
getParts in interface IAspectMultipart

create

public static IURRepresentation create(IURRepresentation aPrimary,
                                       Map aOthers)
A convenience helper to create an IURRepresentation with all aspects from the primary plus a MultiPartAspect containing the list of other aspects


NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.