|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object services.Service services.UploadService
public abstract class UploadService
Abstrakte Oberklasse für Services, die Dateien hochladen wollen.
Field Summary |
---|
Fields inherited from class services.Service |
---|
SC_BAD_REQUEST, SC_FORBIDDEN, SC_INTERNAL_SERVER_ERROR, SC_METHOD_NOT_ALLOWED, SC_NOT_FOUND |
Constructor Summary | |
---|---|
UploadService(RequestInfo ri)
|
|
UploadService(RequestInfo ri,
int maxSize)
|
|
UploadService(RequestInfo ri,
java.lang.String ContentType)
|
|
UploadService(RequestInfo ri,
java.lang.String ContentType,
int maxSize)
|
Method Summary | |
---|---|
static boolean |
checkContentTypeOfFileData(byte[] data,
java.lang.String ContentType)
Überprüft ein Byte-Array anhand der ersten Bytes auf den angegebenen ContentType. |
void |
checkUpload()
Überprüft, ob Upload korrekt. |
java.lang.String |
getAndCheckParameter(java.lang.String p)
Request Parameter (Query-Var) auslesen und HTML rausfiltern. |
java.lang.String |
getAndCheckParameter(java.lang.String p,
boolean allowHTML)
Request Parameter (Query-Var) auslesen und überprüfen. |
java.lang.String |
getAndCheckParameter(java.lang.String p,
boolean allowHTML,
int maxLength)
Request Parameter (Query-Var) auslesen und überprüfen. |
Methods inherited from class services.Service |
---|
addString, filterHtml, getAndCheckParameter, getContent, getContentType, getStatusCode, getVM, includeError, includeInfo, isDownloadService, processRequest, respondError, respondError, respondError, respondWithHtmlService, sendErrorRedirect, sendErrorRedirect, setTemplate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UploadService(RequestInfo ri)
ri
- public UploadService(RequestInfo ri, int maxSize)
public UploadService(RequestInfo ri, java.lang.String ContentType)
public UploadService(RequestInfo ri, java.lang.String ContentType, int maxSize)
Method Detail |
---|
public void checkUpload() throws UploadException
UploadException
- falls Upload fehlerhaftpublic java.lang.String getAndCheckParameter(java.lang.String p)
Service
getAndCheckParameter
in class Service
p
- Parameter
public java.lang.String getAndCheckParameter(java.lang.String p, boolean allowHTML)
Service
getAndCheckParameter
in class Service
p
- ParameterallowHTML
- HTML erlauben oder rausfiltern?
public java.lang.String getAndCheckParameter(java.lang.String p, boolean allowHTML, int maxLength)
Service
getAndCheckParameter
in class Service
p
- ParameterallowHTML
- HTML erlauben oder rausfiltern?
public static boolean checkContentTypeOfFileData(byte[] data, java.lang.String ContentType)
data
- ContentType
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |