Class MultipartProprietaryWriter
- java.lang.Object
-
- com.sun.enterprise.admin.remote.writer.MultipartProprietaryWriter
-
- All Implemented Interfaces:
ProprietaryWriter
public class MultipartProprietaryWriter extends Object implements ProprietaryWriter
- Author:
- martinmares
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMultipartProprietaryWriter.ContentTypeWriter
-
Field Summary
Fields Modifier and Type Field Description protected static StringBOUNDARY_BASEprotected static AtomicIntegerboundary_intprotected static StringBOUNDERY_DELIMITprotected static StringEOL
-
Constructor Summary
Constructors Constructor Description MultipartProprietaryWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisWriteable(Object entity)protected static voidmultiWrite(Writer writer, String... args)protected voidwriteActionReport(Writer writer, OutputStream underOS, String boundary, org.glassfish.api.ActionReport ar)protected voidwriteParam(Writer writer, OutputStream underOS, String boundary, String key, String value)protected voidwritePayloadPart(Writer writer, OutputStream underOS, String boundary, org.glassfish.api.admin.Payload.Part part)voidwriteTo(Object entity, HttpURLConnection urlConnection)voidwriteTo(org.glassfish.api.admin.Payload.Outbound payload, org.glassfish.api.admin.ParameterMap parameters, org.glassfish.api.ActionReport ar, OutputStream os, MultipartProprietaryWriter.ContentTypeWriter contentTypeWriter)
-
-
-
Field Detail
-
BOUNDARY_BASE
protected static final String BOUNDARY_BASE
- See Also:
- Constant Field Values
-
boundary_int
protected static final AtomicInteger boundary_int
-
EOL
protected static final String EOL
- See Also:
- Constant Field Values
-
BOUNDERY_DELIMIT
protected static final String BOUNDERY_DELIMIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Object entity)
- Specified by:
isWriteablein interfaceProprietaryWriter
-
writeTo
public void writeTo(Object entity, HttpURLConnection urlConnection) throws IOException
- Specified by:
writeToin interfaceProprietaryWriter- Throws:
IOException
-
writeParam
protected void writeParam(Writer writer, OutputStream underOS, String boundary, String key, String value) throws IOException
- Throws:
IOException
-
writePayloadPart
protected void writePayloadPart(Writer writer, OutputStream underOS, String boundary, org.glassfish.api.admin.Payload.Part part) throws IOException
- Throws:
IOException
-
writeActionReport
protected void writeActionReport(Writer writer, OutputStream underOS, String boundary, org.glassfish.api.ActionReport ar) throws IOException
- Throws:
IOException
-
writeTo
public void writeTo(org.glassfish.api.admin.Payload.Outbound payload, org.glassfish.api.admin.ParameterMap parameters, org.glassfish.api.ActionReport ar, OutputStream os, MultipartProprietaryWriter.ContentTypeWriter contentTypeWriter) throws IOException- Throws:
IOException
-
multiWrite
protected static void multiWrite(Writer writer, String... args) throws IOException
- Throws:
IOException
-
-