NetKernel APIs


org.ten60.netkernel.layer1.representation
Class MultiPartAspect

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

public class MultiPartAspect
extends java.lang.Object
implements IAspectMultipart

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


Constructor Summary
MultiPartAspect()
           
MultiPartAspect(java.util.Map aParts)
          Creates a new instance of MultiPartAspect
 
Method Summary
 void addPart(java.lang.String aName, IURRepresentation aPart)
          Add a named part.
static IURRepresentation create(IURRepresentation aPrimary, java.util.Map aOthers)
          A convenience helper to create an IURRepresentation with all aspects from the primary plus a MultiPartAspect containing the list of other aspects
 java.lang.String[] getPartNames()
           
 IURRepresentation[] getParts()
           
 IURRepresentation getPartWithName(java.lang.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(java.util.Map aParts)
Creates a new instance of MultiPartAspect

Parameters:
aOthers - a map of named IURRepresentations
Method Detail

addPart

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


getPartWithName

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

getPartNames

public java.lang.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,
                                       java.util.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.